Core/Spells: Fix Unrelenting assault proc only on players.

This commit is contained in:
Kandera
2012-04-12 13:29:28 -04:00
parent dda7fab230
commit 305cd14e86

View File

@@ -441,9 +441,9 @@ public:
if (!spellId)
return;
Unit* target = GetHitUnit();
if (target->HasUnitState(UNIT_STATE_CASTING))
target->CastSpell(target, spellId, true);
if (Player* target = GetHitPlayer())
if (target->HasUnitState(UNIT_STATE_CASTING))
target->CastSpell(target, spellId, true);
}
void Register()