*Wintergrasp: Some GOs were not being rebuilt at battle end, by Spp

*Wintergrasp: Proper way to destroy vehicles, by simon
*Wintergrasp: Turret Cannons were not changing faction at battle end, by Spp
*Some code cleanup and missing code from workshop faction change patch

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-14 14:26:57 -07:00
parent edf0007e6a
commit 27c7d6aa85
2 changed files with 52 additions and 46 deletions
+4 -2
View File
@@ -41,7 +41,6 @@ enum WintergraspSpell
SPELL_TENACITY_VEHICLE = 59911,
SPELL_TELEPORT_DALARAN = 53360,
SPELL_SHUTDOWN_VEHICLE = 21247,
SPELL_TOWER_CONTROL = 62064,
SPELL_VICTORY_REWARD = 56902,
@@ -155,7 +154,7 @@ struct BuildingState
if(graveTeam)
*graveTeam = TeamId2Team[t];
}
GameObject * GetBuilding() { return building; }
private:
TeamId team;
};
@@ -194,6 +193,9 @@ class OPvPWintergrasp : public OutdoorPvP
void SetData(uint32 id, uint32 value);
void ModifyWorkshopCount(TeamId team, bool add);
uint32 GetTimer() { return m_timer / 1000; };
TeamId GetTeam() { return m_defender; };
bool isWarTime() { return m_wartime; };
protected:
TeamId m_defender;
int32 m_tenacityStack;