mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11653] Add script effect of spells 62521, 62524 and 62525
This commit is contained in:
parent
2776f55d7a
commit
83de12fa75
3 changed files with 22 additions and 1 deletions
|
|
@ -8406,6 +8406,7 @@ m_permanent(false), m_isRemovedOnShapeLost(true), m_deleted(false), m_in_use(0)
|
||||||
case 34027: // Kill Command
|
case 34027: // Kill Command
|
||||||
case 55166: // Tidal Force
|
case 55166: // Tidal Force
|
||||||
case 58914: // Kill Command (pet part)
|
case 58914: // Kill Command (pet part)
|
||||||
|
case 62519: // Attuned to Nature
|
||||||
case 64455: // Feral Essence
|
case 64455: // Feral Essence
|
||||||
case 71564: // Deadly Precision
|
case 71564: // Deadly Precision
|
||||||
case 74396: // Fingers of Frost
|
case 74396: // Fingers of Frost
|
||||||
|
|
|
||||||
|
|
@ -7203,6 +7203,26 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 62524: // Attuned to Nature 2 Dose Reduction
|
||||||
|
case 62525: // Attuned to Nature 10 Dose Reduction
|
||||||
|
case 62521: // Attuned to Nature 25 Dose Reduction
|
||||||
|
{
|
||||||
|
if (!unitTarget)
|
||||||
|
return;
|
||||||
|
|
||||||
|
uint32 numStacks = 0;
|
||||||
|
|
||||||
|
switch(m_spellInfo->Id)
|
||||||
|
{
|
||||||
|
case 62524: numStacks = 2; break;
|
||||||
|
case 62525: numStacks = 10; break;
|
||||||
|
case 62521: numStacks = 25; break;
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 spellId = m_spellInfo->CalculateSimpleValue(eff_idx);
|
||||||
|
unitTarget->RemoveAuraHolderFromStack(spellId, numStacks);
|
||||||
|
return;
|
||||||
|
}
|
||||||
case 66477: // Bountiful Feast
|
case 66477: // Bountiful Feast
|
||||||
{
|
{
|
||||||
if (!unitTarget)
|
if (!unitTarget)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11652"
|
#define REVISION_NR "11653"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue