Core/Currency: Add support of Conquest points cap for arena and bg
Remove obselete code for arena points distribution Thanks to @Zakamurite
This commit is contained in:
1 parent
1ecc55272e
commit
f205bc9b4f
27 files changed
+520
-346
No files matched your search
@@ -106,7 +106,6 @@ public:
|
||||
{ "cometome", SEC_ADMINISTRATOR, false, &HandleComeToMeCommand, "", NULL },
|
||||
{ "damage", SEC_ADMINISTRATOR, false, &HandleDamageCommand, "", NULL },
|
||||
{ "combatstop", SEC_GAMEMASTER, true, &HandleCombatStopCommand, "", NULL },
|
||||
{ "flusharenapoints", SEC_ADMINISTRATOR, false, &HandleFlushArenaPointsCommand, "", NULL },
|
||||
{ "repairitems", SEC_GAMEMASTER, true, &HandleRepairitemsCommand, "", NULL },
|
||||
{ "freeze", SEC_MODERATOR, false, &HandleFreezeCommand, "", NULL },
|
||||
{ "unfreeze", SEC_MODERATOR, false, &HandleUnFreezeCommand, "", NULL },
|
||||
@@ -2125,12 +2124,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleFlushArenaPointsCommand(ChatHandler* /*handler*/, char const* /*args*/)
|
||||
{
|
||||
sArenaTeamMgr->DistributeArenaPoints();
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool HandleRepairitemsCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
Player* target;
|
||||
|
||||
@@ -1134,7 +1134,7 @@ public:
|
||||
|
||||
target->ModifyCurrency(CURRENCY_TYPE_HONOR_POINTS, amount, true, true);
|
||||
|
||||
handler->PSendSysMessage(LANG_COMMAND_MODIFY_HONOR, handler->GetNameLink(target).c_str(), target->GetCurrency(CURRENCY_TYPE_HONOR_POINTS));
|
||||
handler->PSendSysMessage(LANG_COMMAND_MODIFY_HONOR, handler->GetNameLink(target).c_str(), target->GetCurrency(CURRENCY_TYPE_HONOR_POINTS, false));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1325,7 +1325,7 @@ public:
|
||||
|
||||
target->ModifyCurrency(CURRENCY_TYPE_CONQUEST_POINTS, amount, true, true);
|
||||
|
||||
handler->PSendSysMessage(LANG_COMMAND_MODIFY_ARENA, handler->GetNameLink(target).c_str(), target->GetCurrency(CURRENCY_TYPE_CONQUEST_POINTS));
|
||||
handler->PSendSysMessage(LANG_COMMAND_MODIFY_ARENA, handler->GetNameLink(target).c_str(), target->GetCurrency(CURRENCY_TYPE_CONQUEST_POINTS, false));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user