Implemented carrier debuffs in WSG battleground

After 10 and 15 minutes players carrying flags will receive debuffs, if both flags are kept.
In case of dropping flag buff is removed. When Flag is picked up by another player, he gets debuff.
Please test and report bugs.

--HG--
branch : trunk
This commit is contained in:
raczman
2009-05-22 13:23:07 +02:00
parent b0a48f60c9
commit f1ea5714f2
2 changed files with 74 additions and 1 deletions
+9 -1
View File
@@ -128,6 +128,12 @@ enum BG_WS_CreatureTypes
BG_CREATURES_MAX_WS = 2
};
enum BG_WS_CarrierDebuffs
{
WS_SPELL_FOCUSED_ASSAULT = 46392,
WS_SPELL_BRUTAL_ASSAULT = 46393
};
class BattleGroundWGScore : public BattleGroundScore
{
public:
@@ -196,9 +202,11 @@ class BattleGroundWS : public BattleGround
uint32 m_TeamScores[2];
int32 m_FlagsTimer[2];
int32 m_FlagsDropTimer[2];
int32 m_FlagSpellForceTimer;
int32 m_FlagSpellBrutalTimer;
bool m_BothFlagsKept;
uint8 m_FlagDebuffState; // 0 - no debuffs, 1 - focused assault, 2 - brutal assault
};
#endif