mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 23:26:23 +00:00
feat(Core/Unit): Add KillSelf overload (#14785)
Co-authored-by: jackpoz <giacomopoz@gmail.com>
This commit is contained in:
@@ -104,10 +104,10 @@ public:
|
||||
if (Unit* p = ObjectAccessor::GetUnit(*me, PrisonerGUID))
|
||||
{
|
||||
if( !p->HasAura(SPELL_FROST_TOMB_AURA) )
|
||||
Unit::Kill(me, me);
|
||||
me->KillSelf();
|
||||
}
|
||||
else
|
||||
Unit::Kill(me, me);
|
||||
me->KillSelf();
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -294,7 +294,7 @@ public:
|
||||
if( pInstance && pInstance->GetData(DATA_KELESETH) != IN_PROGRESS )
|
||||
{
|
||||
if( me->IsAlive() )
|
||||
Unit::Kill(me, me);
|
||||
me->KillSelf();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user