Core/Defines: define faction templates and replace magic numbers from scripts

This commit is contained in:
ForesterDev
2017-05-23 14:30:27 +04:00
committed by Aokromes
parent d96482b2d4
commit abea8bf4cb
99 changed files with 254 additions and 316 deletions
+1 -1
View File
@@ -3742,7 +3742,7 @@ class spell_gen_gm_freeze : public SpellScriptLoader
if (Player* player = GetTarget()->ToPlayer())
{
// stop combat + make player unattackable + duel stop + stop some spells
player->SetFaction(35);
player->SetFaction(FACTION_FRIENDLY);
player->CombatStop();
if (player->IsNonMeleeSpellCast(true))
player->InterruptNonMeleeSpells(true);