mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708)
This commit is contained in:
@@ -250,8 +250,7 @@ public:
|
||||
enum Cooshhooosh
|
||||
{
|
||||
SPELL_LIGHTNING_BOLT = 9532,
|
||||
QUEST_CRACK_SKULLS = 10009,
|
||||
FACTION_HOSTILE_CO = 45
|
||||
QUEST_CRACK_SKULLS = 10009
|
||||
};
|
||||
|
||||
class npc_cooshcoosh : public CreatureScript
|
||||
@@ -263,7 +262,7 @@ public:
|
||||
{
|
||||
npc_cooshcooshAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
m_uiNormFaction = creature->getFaction();
|
||||
m_uiNormFaction = creature->GetFaction();
|
||||
}
|
||||
|
||||
uint32 m_uiNormFaction;
|
||||
@@ -272,8 +271,8 @@ public:
|
||||
void Reset() override
|
||||
{
|
||||
LightningBolt_Timer = 2000;
|
||||
if (me->getFaction() != m_uiNormFaction)
|
||||
me->setFaction(m_uiNormFaction);
|
||||
if (me->GetFaction() != m_uiNormFaction)
|
||||
me->SetFaction(m_uiNormFaction);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override { }
|
||||
@@ -314,7 +313,7 @@ public:
|
||||
if (action == GOSSIP_ACTION_INFO_DEF)
|
||||
{
|
||||
CloseGossipMenuFor(player);
|
||||
creature->setFaction(FACTION_HOSTILE_CO);
|
||||
creature->SetFaction(FACTION_OGRE);
|
||||
creature->AI()->AttackStart(player);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user