Merge pull request #7678 from Aokromes/master

Scripts/Scarlet Monastery: Final boss kill credit closes #7341
This commit is contained in:
Subv
2012-09-06 19:08:29 -07:00

View File

@@ -283,6 +283,12 @@ public:
DoScriptText(SAY_WH_KILL, me);
}
void DamageTaken(Unit* /*attacker*/, uint32& damage)
{
if (!_bCanResurrectCheck && damage >= me->GetHealth())
damage = me->GetHealth() - 1;
}
void UpdateAI(const uint32 diff)
{
if (!UpdateVictim())