[11653] Add script effect of spells 62521, 62524 and 62525

This commit is contained in:
zergtmn 2011-06-19 21:21:12 +06:00
parent 2776f55d7a
commit 83de12fa75
3 changed files with 22 additions and 1 deletions

View file

@ -8406,6 +8406,7 @@ m_permanent(false), m_isRemovedOnShapeLost(true), m_deleted(false), m_in_use(0)
case 34027: // Kill Command
case 55166: // Tidal Force
case 58914: // Kill Command (pet part)
case 62519: // Attuned to Nature
case 64455: // Feral Essence
case 71564: // Deadly Precision
case 74396: // Fingers of Frost

View file

@ -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)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11652"
#define REVISION_NR "11653"
#endif // __REVISION_NR_H__