Core/Achievements: Fixed Defense of the Ancients in SotA
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (7636,7740) AND `type`=11;
|
||||
INSERT INTO `achievement_criteria_data` (`criteria_id`,`type`,`value1`,`value2`,`ScriptName`)
|
||||
VALUES
|
||||
(7636,11,0,0,'achievement_bg_sa_defense_of_ancients'),
|
||||
(7740,11,0,0,'achievement_bg_sa_defense_of_ancients');
|
||||
@@ -50,6 +50,7 @@ void BattlegroundSA::Reset()
|
||||
for (uint8 i = 0; i <= 5; i++)
|
||||
GateStatus[i] = BG_SA_GATE_OK;
|
||||
ShipsStarted = false;
|
||||
gateDestroyed = false;
|
||||
Status = BG_SA_WARMUP;
|
||||
}
|
||||
|
||||
@@ -610,6 +611,7 @@ void BattlegroundSA::DestroyGate(Player* player, GameObject* go)
|
||||
if (uws)
|
||||
UpdateWorldState(uws, GateStatus[i]);
|
||||
bool rewardHonor = true;
|
||||
gateDestroyed = true;
|
||||
switch(i)
|
||||
{
|
||||
case BG_SA_GREEN_GATE:
|
||||
|
||||
@@ -484,6 +484,9 @@ class BattlegroundSA : public Battleground
|
||||
/// Update score board
|
||||
void UpdatePlayerScore(Player *Source, uint32 type, uint32 value, bool doAddHonor = true);
|
||||
|
||||
// Achievement Defense of the Ancients
|
||||
bool gateDestroyed;
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user