diff options
author | thenecromancer <none@none> | 2010-01-13 10:08:49 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-13 10:08:49 +0100 |
commit | 6b07806d0c034e6b88cf0426c753e620841181a5 (patch) | |
tree | 403a278439565440d570b7bea58bc64b7a9f0bd2 | |
parent | 3af5237f8cdf426b78feb0686d487f70ee429993 (diff) |
Add support for additional passive for FORM_MOONKIN
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellAuraEffects.cpp | 1 | ||||
-rw-r--r-- | src/game/Unit.cpp | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp index 1492d586943..6c2dd451239 100644 --- a/src/game/SpellAuraEffects.cpp +++ b/src/game/SpellAuraEffects.cpp @@ -2288,6 +2288,7 @@ void AuraEffect::HandleShapeshiftBoosts(Unit * target, bool apply) const break; case FORM_MOONKIN: spellId = 24905; + spellId2 = 69366; break; case FORM_FLIGHT: spellId = 33948; diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e7e08b8323a..f0c16365606 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1849,6 +1849,14 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff RemainingDamage -= int32(currentAbsorb * pVictim->GetTotalAttackPowerValue(BASE_ATTACK) / 100); continue; } + // Moonkin Form passive
+ if (spellProto->Id == 69366)
+ {
+ //reduces all damage taken while Stunned
+ if (unitflag & UNIT_FLAG_STUNNED)
+ RemainingDamage -= RemainingDamage * currentAbsorb / 100;
+ continue;
+ } break; } case SPELLFAMILY_ROGUE: |