Core/Unit: Implement more helper methods (#23555)

(cherry picked from commit c44fb37f74347e3b6d399c941716971503af4cf8)
This commit is contained in:
ForesterDev
2021-12-14 20:42:32 +01:00
committed by Shauren
parent dbb96e7717
commit 104ec7a81a
7 changed files with 32 additions and 28 deletions
+1 -1
View File
@@ -3690,7 +3690,7 @@ class spell_gen_gm_freeze : public AuraScript
if (Player* player = GetTarget()->ToPlayer())
{
// Reset player faction + allow combat + allow duels
player->setFactionForRace(player->GetRace());
player->SetFactionForRace(player->GetRace());
player->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
// save player
player->SaveToDB();