Adapted to existing code style

This commit is contained in:
Luca Folloni 2025-10-26 21:06:14 +01:00 committed by GitHub
parent 10bf73ac20
commit b8a654134c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;