Skip to content

Commit

Permalink
[11065] Implement stun absorb part of spell 24858
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <[email protected]>
  • Loading branch information
breakwater authored and VladimirMangos committed Jan 24, 2011
1 parent 250d0c2 commit d172057
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/game/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6108,6 +6108,7 @@ void Aura::HandleShapeshiftBoosts(bool apply)
break;
case FORM_MOONKIN:
spellId1 = 24905;
spellId2 = 69366;
MasterShaperSpellId = 48421;
break;
case FORM_FLIGHT:
Expand Down
8 changes: 8 additions & 0 deletions src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2076,6 +2076,14 @@ void Unit::CalculateDamageAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolM
RemainingDamage -= RemainingDamage * currentAbsorb / 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:
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11064"
#define REVISION_NR "11065"
#endif // __REVISION_NR_H__

0 comments on commit d172057

Please sign in to comment.