mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 21:04:26 +08:00
Adapted to existing code style
This commit is contained in:
parent
10bf73ac20
commit
b8a654134c
@ -156,8 +156,8 @@ class spell_dk_raise_ally : public SpellScript
|
||||
if (!targetGuid)
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
Unit *target = ObjectAccessor::GetUnit(*(GetSpell()->GetCaster()), targetGuid);
|
||||
Player *unitTarget = target ? target->ToPlayer() : nullptr;
|
||||
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