Core/Misc: camelize GetFaction/SetFaction properly
This commit is contained in:
1 parent
0245a73ff6
commit
c015a5cf10
122 files changed
+353
-353
No files matched your search
@@ -569,7 +569,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
creature->setFaction(factionId);
|
||||
creature->SetFaction(factionId);
|
||||
|
||||
// Faction is set in creature_template - not inside creature
|
||||
|
||||
@@ -685,7 +685,7 @@ public:
|
||||
|
||||
CreatureTemplate const* cInfo = target->GetCreatureTemplate();
|
||||
|
||||
uint32 faction = target->getFaction();
|
||||
uint32 faction = target->GetFaction();
|
||||
uint32 npcflags = target->GetUInt32Value(UNIT_NPC_FLAGS);
|
||||
uint32 mechanicImmuneMask = cInfo->MechanicImmuneMask;
|
||||
uint32 displayid = target->GetDisplayId();
|
||||
@@ -709,7 +709,7 @@ public:
|
||||
if (target->GetUInt32Value(UNIT_FIELD_FLAGS) & unitFlags[i].Value)
|
||||
handler->PSendSysMessage("%s (0x%X)", unitFlags[i].Name, unitFlags[i].Value);
|
||||
|
||||
handler->PSendSysMessage(LANG_NPCINFO_FLAGS, target->GetUInt32Value(UNIT_FIELD_FLAGS_2), target->GetUInt32Value(UNIT_DYNAMIC_FLAGS), target->getFaction());
|
||||
handler->PSendSysMessage(LANG_NPCINFO_FLAGS, target->GetUInt32Value(UNIT_FIELD_FLAGS_2), target->GetUInt32Value(UNIT_DYNAMIC_FLAGS), target->GetFaction());
|
||||
handler->PSendSysMessage(LANG_COMMAND_RAWPAWNTIMES, defRespawnDelayStr.c_str(), curRespawnDelayStr.c_str());
|
||||
handler->PSendSysMessage(LANG_NPCINFO_LOOT, cInfo->lootid, cInfo->pickpocketLootId, cInfo->SkinLootId);
|
||||
handler->PSendSysMessage(LANG_NPCINFO_DUNGEON_ID, target->GetInstanceId());
|
||||
|
||||
Reference in new issue
Block a user