mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-01 14:46:54 +01:00
Core/Misc: Reduce differences between branches
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "BattlefieldMgr.h"
|
||||
#include "Battleground.h"
|
||||
#include "CreatureTextMgr.h"
|
||||
#include "DBCStores.h"
|
||||
#include "GameObject.h"
|
||||
#include "GameTime.h"
|
||||
#include "Log.h"
|
||||
@@ -762,7 +763,7 @@ void BattlefieldWG::OnBattleEnd(bool endByTimer)
|
||||
// *******************************************************
|
||||
void BattlefieldWG::DoCompleteOrIncrementAchievement(uint32 achievement, Player* player, uint8 /*incrementNumber*/)
|
||||
{
|
||||
AchievementEntry const* achievementEntry = sAchievementMgr->GetAchievement(achievement);
|
||||
AchievementEntry const* achievementEntry = sAchievementStore.LookupEntry(achievement);
|
||||
|
||||
if (!achievementEntry)
|
||||
return;
|
||||
|
||||
@@ -23,8 +23,8 @@ Category: commandscripts
|
||||
EndScriptData */
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "AchievementMgr.h"
|
||||
#include "Chat.h"
|
||||
#include "DBCStores.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "DisableMgr.h"
|
||||
#include "Language.h"
|
||||
@@ -129,7 +129,7 @@ public:
|
||||
}
|
||||
case DISABLE_TYPE_ACHIEVEMENT_CRITERIA:
|
||||
{
|
||||
if (!sAchievementMgr->GetAchievementCriteria(entry))
|
||||
if (!sAchievementCriteriaStore.LookupEntry(entry))
|
||||
{
|
||||
handler->PSendSysMessage(LANG_COMMAND_NO_ACHIEVEMENT_CRITERIA_FOUND);
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
@@ -554,12 +554,13 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32 moneyToAddMsg = moneyToAdd * -1;
|
||||
if (newmoney > static_cast<int32>(MAX_MONEY_AMOUNT))
|
||||
newmoney = MAX_MONEY_AMOUNT;
|
||||
|
||||
handler->PSendSysMessage(LANG_YOU_TAKE_MONEY, abs(moneyToAdd), handler->GetNameLink(target).c_str());
|
||||
handler->PSendSysMessage(LANG_YOU_TAKE_MONEY, moneyToAddMsg, handler->GetNameLink(target).c_str());
|
||||
if (handler->needReportToTarget(target))
|
||||
ChatHandler(target->GetSession()).PSendSysMessage(LANG_YOURS_MONEY_TAKEN, handler->GetNameLink().c_str(), abs(moneyToAdd));
|
||||
ChatHandler(target->GetSession()).PSendSysMessage(LANG_YOURS_MONEY_TAKEN, handler->GetNameLink().c_str(), moneyToAddMsg);
|
||||
target->SetMoney(newmoney);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user