Core/Players: Worgen will now transform into their altered form at engage instead of at dealing or taking damage
This commit is contained in:
1 parent
a5caf1af95
commit
7ac3d6fca9
3 files changed
+15
-14
No files matched your search
@@ -775,20 +775,6 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
|
||||
}
|
||||
}
|
||||
|
||||
if (victim->getRace() == RACE_WORGEN && victim->ToPlayer())
|
||||
{
|
||||
if (Player* worgenVictm = victim->ToPlayer())
|
||||
if (worgenVictm->HasSpell(SPELL_TWO_FORMS_RACIAL) && !worgenVictm->HasAura(SPELL_ALTERED_FORM_RACIAL))
|
||||
worgenVictm->CastSpell(worgenVictm, SPELL_ALTERED_FORM_RACIAL, true);
|
||||
}
|
||||
|
||||
if (getRace() == RACE_WORGEN && ToPlayer())
|
||||
{
|
||||
if (Player* worgenPlayer = ToPlayer())
|
||||
if (worgenPlayer->HasSpell(SPELL_TWO_FORMS_RACIAL) && !HasAura(SPELL_ALTERED_FORM_RACIAL))
|
||||
CastSpell(worgenPlayer, SPELL_ALTERED_FORM_RACIAL, true);
|
||||
}
|
||||
|
||||
if (victim->IsAIEnabled)
|
||||
victim->GetAI()->DamageTaken(this, damage);
|
||||
|
||||
|
||||
Reference in new issue
Block a user