mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 04:37:04 +00:00
[12067] Use world state enum for adding/ remove a state in bg and various cleanups
Thanks to stfc for additional input Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
3707b04330
commit
759d7f80db
28 changed files with 308 additions and 309 deletions
|
|
@ -62,19 +62,19 @@ void BattleGroundSA::RemovePlayer(Player* /*plr*/, ObjectGuid /*guid*/)
|
|||
|
||||
}
|
||||
|
||||
void BattleGroundSA::HandleAreaTrigger(Player* /*Source*/, uint32 /*Trigger*/)
|
||||
void BattleGroundSA::HandleAreaTrigger(Player* /*source*/, uint32 /*trigger*/)
|
||||
{
|
||||
// this is wrong way to implement these things. On official it done by gameobject spell cast.
|
||||
if (GetStatus() != STATUS_IN_PROGRESS)
|
||||
return;
|
||||
}
|
||||
|
||||
void BattleGroundSA::UpdatePlayerScore(Player* Source, uint32 type, uint32 value)
|
||||
void BattleGroundSA::UpdatePlayerScore(Player* source, uint32 type, uint32 value)
|
||||
{
|
||||
|
||||
BattleGroundScoreMap::iterator itr = m_PlayerScores.find(Source->GetObjectGuid());
|
||||
BattleGroundScoreMap::iterator itr = m_PlayerScores.find(source->GetObjectGuid());
|
||||
if (itr == m_PlayerScores.end()) // player not found...
|
||||
return;
|
||||
|
||||
BattleGround::UpdatePlayerScore(Source, type, value);
|
||||
BattleGround::UpdatePlayerScore(source, type, value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue