mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 20:54:15 +08:00
Merge 21145903f56d8d6e6f433a896e6c5f614a3791ca into 5bef92d5eaca3e2ecc317f9d599312bc23eb71aa
This commit is contained in:
commit
eb980bc64b
@ -152,7 +152,12 @@ class spell_dk_raise_ally : public SpellScript
|
||||
|
||||
SpellCastResult CheckCast()
|
||||
{
|
||||
Player* unitTarget = GetHitPlayer();
|
||||
ObjectGuid targetGuid = GetSpell()->m_targets.GetUnitTargetGUID();
|
||||
if (!targetGuid)
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
Unit* target = ObjectAccessor::GetUnit(*(GetSpell()->GetCaster()), targetGuid);
|
||||
Player* unitTarget = target ? target->ToPlayer() : nullptr;
|
||||
if (!unitTarget)
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user