aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/ShadowfangKeep
diff options
context:
space:
mode:
authorForesterDev <forester.manv@gmail.com>2017-05-23 14:30:27 +0400
committerfunjoker <funjoker109@gmail.com>2020-06-14 23:49:03 +0200
commitc34b83a467975f5d2ed6f8a98b8d6cb0c7710a34 (patch)
tree44a6e4676cea8beb3baf17ae1b5871c4f5d6dfaf /src/server/scripts/EasternKingdoms/ShadowfangKeep
parent607c5ad5541bac7ce8a2787ef9c87b4ebea74a5e (diff)
Core/Defines: define faction templates and replace magic numbers from scripts
(cherry picked from commit abea8bf4cb3034f56d833982f951a0742dc36fc7)
Diffstat (limited to 'src/server/scripts/EasternKingdoms/ShadowfangKeep')
-rw-r--r--src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp
index 9d03d816fda..1cfbabb638d 100644
--- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp
+++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp
@@ -78,8 +78,6 @@ enum ApothecaryMisc
{
ACTION_START_EVENT = 1,
ACTION_START_FIGHT = 2,
- FACTION_APOTHECARY_HOSTILE = 14,
- FACTION_APOTHECARY_FRIENDLY = 35,
GOSSIP_OPTION_START = 0,
GOSSIP_MENU_HUMMEL = 10847,
QUEST_YOUVE_BEEN_SERVED = 14488,
@@ -120,7 +118,7 @@ class boss_apothecary_hummel : public CreatureScript
_deadCount = 0;
_isDead = false;
events.SetPhase(PHASE_ALL);
- me->SetFaction(FACTION_APOTHECARY_FRIENDLY);
+ me->SetFaction(FACTION_FRIENDLY);
me->SummonCreatureGroup(1);
}
@@ -139,7 +137,7 @@ class boss_apothecary_hummel : public CreatureScript
events.ScheduleEvent(EVENT_HUMMEL_SAY_0, Milliseconds(1));
me->AddUnitFlag(UNIT_FLAG_IMMUNE_TO_PC);
- me->SetFaction(FACTION_APOTHECARY_HOSTILE);
+ me->SetFaction(FACTION_MONSTER);
DummyEntryCheckPredicate pred;
summons.DoAction(ACTION_START_EVENT, pred);
}
@@ -296,7 +294,7 @@ struct npc_apothecary_genericAI : public ScriptedAI
if (action == ACTION_START_EVENT)
{
me->AddUnitFlag(UNIT_FLAG_IMMUNE_TO_PC);
- me->SetFaction(FACTION_APOTHECARY_HOSTILE);
+ me->SetFaction(FACTION_MONSTER);
me->GetMotionMaster()->MovePoint(1, _movePos);
}
else if (action == ACTION_START_FIGHT)