Core/Unit: Implement more helper methods (#23555)
(cherry picked from commit c44fb37f74347e3b6d399c941716971503af4cf8)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user