aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-01-13 10:08:49 +0100
committerthenecromancer <none@none>2010-01-13 10:08:49 +0100
commit6b07806d0c034e6b88cf0426c753e620841181a5 (patch)
tree403a278439565440d570b7bea58bc64b7a9f0bd2
parent3af5237f8cdf426b78feb0686d487f70ee429993 (diff)
Add support for additional passive for FORM_MOONKIN
--HG-- branch : trunk
-rw-r--r--src/game/SpellAuraEffects.cpp1
-rw-r--r--src/game/Unit.cpp8
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: