Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/AI/SmartScripts/SmartScriptMgr.cpp src/server/game/Battlegrounds/BattlegroundMgr.cpp src/server/game/Guilds/Guild.h src/server/game/Spells/SpellMgr.cpp src/tools/map_extractor/loadlib.cpp
This commit is contained in:
commit
d25c2e7f5b
43 files changed
+318
-165
No files matched your search
@@ -459,7 +459,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((pwConfig == PW_EMAIL || pwConfig == PW_RBAC && handler->HasPermission(RBAC_PERM_EMAIL_CONFIRM_FOR_PASS_CHANGE)) && !emailConfirmation)
|
||||
if ((pwConfig == PW_EMAIL || (pwConfig == PW_RBAC && handler->HasPermission(RBAC_PERM_EMAIL_CONFIRM_FOR_PASS_CHANGE))) && !emailConfirmation)
|
||||
{
|
||||
handler->SendSysMessage(LANG_CMD_SYNTAX);
|
||||
handler->SetSentErrorMessage(true);
|
||||
@@ -479,7 +479,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((pwConfig == PW_EMAIL || pwConfig == PW_RBAC && handler->HasPermission(RBAC_PERM_EMAIL_CONFIRM_FOR_PASS_CHANGE)) // Either PW_EMAIL or PW_RBAC with the Permission
|
||||
if ((pwConfig == PW_EMAIL || (pwConfig == PW_RBAC && handler->HasPermission(RBAC_PERM_EMAIL_CONFIRM_FOR_PASS_CHANGE))) // Either PW_EMAIL or PW_RBAC with the Permission
|
||||
&& !AccountMgr::CheckEmail(handler->GetSession()->GetAccountId(), std::string(emailConfirmation)))
|
||||
{
|
||||
handler->SendSysMessage(LANG_COMMAND_WRONGEMAIL);
|
||||
|
||||
@@ -357,7 +357,7 @@ public:
|
||||
if (!*args)
|
||||
return false;
|
||||
|
||||
return HandleAddDisables(handler, args, DISABLE_TYPE_MAP);
|
||||
return HandleRemoveDisables(handler, args, DISABLE_TYPE_MAP);
|
||||
}
|
||||
|
||||
static bool HandleRemoveDisableBattlegroundCommand(ChatHandler* handler, char const* args)
|
||||
|
||||
@@ -1172,7 +1172,7 @@ public:
|
||||
|
||||
int32 amount = 0;
|
||||
char *rankTxt = strtok(NULL, " ");
|
||||
if (!factionTxt || !rankTxt)
|
||||
if (!factionId || !rankTxt)
|
||||
return false;
|
||||
|
||||
amount = atoi(rankTxt);
|
||||
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
if (Creature* pBalinda = Unit::GetCreature(*me, balindaGUID))
|
||||
if (me->GetDistance2d(pBalinda->GetHomePosition().GetPositionX(), pBalinda->GetHomePosition().GetPositionY()) > 50)
|
||||
EnterEvadeMode();
|
||||
resetTimer = 5 * IN_MILLISECONDS;
|
||||
resetTimer = 5 * IN_MILLISECONDS;
|
||||
} else resetTimer -= diff;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
|
||||
@@ -1016,7 +1016,7 @@ class npc_jaina_or_sylvanas_escape_hor : public CreatureScript
|
||||
else if (_icewall == 3)
|
||||
me->AI()->Talk(SAY_JAINA_ESCAPE_5);
|
||||
}
|
||||
else if (_instance->GetData(DATA_TEAM_IN_INSTANCE) == ALLIANCE)
|
||||
else if (_instance->GetData(DATA_TEAM_IN_INSTANCE) == HORDE)
|
||||
{
|
||||
if (_icewall == 1)
|
||||
me->AI()->Talk(SAY_SYLVANAS_ESCAPE_3);
|
||||
|
||||
@@ -215,8 +215,6 @@ bool OutdoorPvPNA::SetupOutdoorPvP()
|
||||
|
||||
// halaa
|
||||
m_obj = new OPvPCapturePointNA(this);
|
||||
if (!m_obj)
|
||||
return false;
|
||||
|
||||
AddCapturePoint(m_obj);
|
||||
return true;
|
||||
|
||||
@@ -304,7 +304,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
HandleGameObject(PrisonCell8GUID, false);
|
||||
}
|
||||
|
||||
void ResetPrisoners(std::set<uint64> prisoners)
|
||||
void ResetPrisoners(const std::set<uint64>& prisoners)
|
||||
{
|
||||
for (std::set<uint64>::iterator i = prisoners.begin(); i != prisoners.end(); ++i)
|
||||
if (Creature* prisoner = instance->GetCreature(*i))
|
||||
@@ -398,7 +398,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
}
|
||||
}
|
||||
|
||||
void ActivatePrisoners(std::set<uint64> prisoners)
|
||||
void ActivatePrisoners(const std::set<uint64>& prisoners)
|
||||
{
|
||||
for (std::set<uint64>::iterator i = prisoners.begin(); i != prisoners.end(); ++i)
|
||||
if (Creature* prisoner = instance->GetCreature(*i))
|
||||
|
||||
@@ -2072,8 +2072,6 @@ class spell_q12641_death_comes_from_on_high : public SpellScriptLoader
|
||||
{
|
||||
uint32 spellId = 0;
|
||||
|
||||
TC_LOG_DEBUG(LOG_FILTER_SPELLS_AURAS, "spell_q12641_death_comes_from_on_high:: Caster: %s (GUID: %u) On Hit Target: Creature: %s (Entry: %u GUID: %u)",
|
||||
GetOriginalCaster()->GetName().c_str(), GetOriginalCaster()->GetGUIDLow(), GetHitCreature()->GetName().c_str(), GetHitCreature()->GetEntry(), GetHitCreature()->GetGUIDLow());
|
||||
switch (GetHitCreature()->GetEntry())
|
||||
{
|
||||
case NPC_NEW_AVALON_FORGE:
|
||||
@@ -2092,7 +2090,7 @@ class spell_q12641_death_comes_from_on_high : public SpellScriptLoader
|
||||
return;
|
||||
}
|
||||
|
||||
GetOriginalCaster()->CastSpell((Unit*)NULL, spellId, true);
|
||||
GetCaster()->CastSpell((Unit*)NULL, spellId, true);
|
||||
}
|
||||
|
||||
void Register() OVERRIDE
|
||||
|
||||
Reference in new issue
Block a user