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

This commit is contained in:
Aokromes committed 2017-05-23 14:37:54 +02:00
1 parent ec3945c3b7
commit f0e36b0863
83 files changed
+227 -278

No files matched your search

+1 -1
View File
@@ -3531,7 +3531,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);