aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManuel Carrasco <manue.l@live.com.ar>2012-02-28 22:07:35 -0300
committerKandera <KanderaDev@gmail.com>2012-08-20 13:36:11 -0400
commitc580ec24a712390e55ac1c0be086aa73d349a7d2 (patch)
tree757cbeddde83c6617271f84b87645885bfc9a0b8 /src
parentecb5adef24b989df1b16d190764e28f903ab2302 (diff)
BF/Wintergrasp: Removed uneeded check , it has been performed on every tick update. It is already handled by the aura system.
Furthermore, the aura is correctly added to the spirits using creature_template_addon, the statements for this are already in Template_update.sql
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlefield/Zones/BattlefieldWG.cpp33
-rw-r--r--src/server/game/Battlefield/Zones/BattlefieldWG.h6
2 files changed, 0 insertions, 39 deletions
diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
index 823691a60f3..2638014b037 100644
--- a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
+++ b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp
@@ -221,23 +221,6 @@ bool BattlefieldWG::Update(uint32 diff)
else
m_saveTimer -= diff;
- for (GuidSet::const_iterator itr = m_PlayersIsSpellImu.begin(); itr != m_PlayersIsSpellImu.end(); ++itr)
- if (Player* player = sObjectAccessor->FindPlayer(*itr))
- {
- if (player->HasAura(SPELL_SPIRITUAL_IMMUNITY))
- {
- const WorldSafeLocsEntry *graveyard = GetClosestGraveYard(player);
- if (graveyard)
- {
- if (player->GetDistance2d(graveyard->x, graveyard->y) > 10.0f)
- {
- player->RemoveAurasDueToSpell(SPELL_SPIRITUAL_IMMUNITY);
- m_PlayersIsSpellImu.erase(player->GetGUID());
- }
- }
- }
- }
-
if (m_BattlefieldActive)
{
for (uint8 team = 0; team < 2; ++team)
@@ -268,22 +251,6 @@ bool BattlefieldWG::Update(uint32 diff)
return m_return;
}
-void BattlefieldWG::AddPlayerToResurrectQueue(uint64 npc_guid, uint64 player_guid)
-{
- Battlefield::AddPlayerToResurrectQueue(npc_guid, player_guid);
- if (IsWarTime())
- {
- if (Player* player = sObjectAccessor->FindPlayer(player_guid))
- {
- if (!player->HasAura(SPELL_SPIRITUAL_IMMUNITY))
- {
- player->CastSpell(player, SPELL_SPIRITUAL_IMMUNITY, true);
- m_PlayersIsSpellImu.insert(player->GetGUID());
- }
- }
- }
-}
-
void BattlefieldWG::OnBattleStart()
{
// Spawn titan relic
diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.h b/src/server/game/Battlefield/Zones/BattlefieldWG.h
index 4c7afcdaeeb..da16421df7f 100644
--- a/src/server/game/Battlefield/Zones/BattlefieldWG.h
+++ b/src/server/game/Battlefield/Zones/BattlefieldWG.h
@@ -366,11 +366,6 @@ class BattlefieldWG : public Battlefield
void DoCompleteOrIncrementAchievement(uint32 achievement, Player *player, uint8 incrementNumber = 1);
/**
- * \brief called when a player is die, for add him to resurrect queue
- */
- void AddPlayerToResurrectQueue(uint64 npc_guid, uint64 player_guid);
-
- /**
* \brief Called when battlefield is setup, at server start
*/
bool SetupBattlefield();
@@ -425,7 +420,6 @@ class BattlefieldWG : public Battlefield
GameObjectSet DefenderPortalList;
GameObjectSet m_KeepGameObject[2];
GuidSet m_vehicles[2];
- GuidSet m_PlayersIsSpellImu; // Player is dead
uint32 m_tenacityStack;
uint32 m_saveTimer;
};