mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Core/Misc: camelize GetFaction/SetFaction properly
This commit is contained in:
@@ -251,7 +251,7 @@ public:
|
||||
if (Spell)
|
||||
creature->CastSpell(player, Spell, false);
|
||||
else
|
||||
TC_LOG_ERROR("scripts", "go_ethereum_prison summoned Creature (entry %u) but faction (%u) are not expected by script.", creature->GetEntry(), creature->getFaction());
|
||||
TC_LOG_ERROR("scripts", "go_ethereum_prison summoned Creature (entry %u) but faction (%u) are not expected by script.", creature->GetEntry(), creature->GetFaction());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ public:
|
||||
void Reset() override
|
||||
{
|
||||
Initialize();
|
||||
me->setFaction(FACTION_CHICKEN);
|
||||
me->SetFaction(FACTION_CHICKEN);
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ public:
|
||||
if (player->GetQuestStatus(QUEST_CLUCK) == QUEST_STATUS_NONE && rand32() % 30 == 1)
|
||||
{
|
||||
me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
|
||||
me->setFaction(FACTION_FRIENDLY);
|
||||
me->SetFaction(FACTION_FRIENDLY);
|
||||
Talk(player->GetTeam() == HORDE ? EMOTE_HELLO_H : EMOTE_HELLO_A);
|
||||
}
|
||||
break;
|
||||
@@ -323,7 +323,7 @@ public:
|
||||
if (player->GetQuestStatus(QUEST_CLUCK) == QUEST_STATUS_COMPLETE)
|
||||
{
|
||||
me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
|
||||
me->setFaction(FACTION_FRIENDLY);
|
||||
me->SetFaction(FACTION_FRIENDLY);
|
||||
Talk(EMOTE_CLUCK_TEXT);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user