mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +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
|
|
@ -7203,6 +7203,26 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
|
||||
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
|
||||
{
|
||||
if (!unitTarget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue