aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/Spell.cpp
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-08-08 04:37:24 +0200
committerXTZGZoReX <none@none>2010-08-08 04:37:24 +0200
commit909e33257911cec50284b513742d3d92d12260e3 (patch)
treee67dd1ab4cf548d8d25d79695a90c97450305961 /src/server/game/Spells/Spell.cpp
parent3d1efa6ed75f12d4432b0ce687f8981469e6d7e4 (diff)
* Rename: BattleGround -> Battleground.
--HG-- branch : trunk
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r--src/server/game/Spells/Spell.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index ca7443fbbcf..5f1d60b1771 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -44,7 +44,7 @@
#include "SharedDefines.h"
#include "LootMgr.h"
#include "VMapFactory.h"
-#include "BattleGround.h"
+#include "Battleground.h"
#include "Util.h"
#include "TemporarySummon.h"
#include "Vehicle.h"
@@ -4614,7 +4614,7 @@ SpellCastResult Spell::CheckCast(bool strict)
// only allow triggered spells if at an ended battleground
if (!m_IsTriggeredSpell && m_caster->GetTypeId() == TYPEID_PLAYER)
- if (BattleGround * bg = m_caster->ToPlayer()->GetBattleGround())
+ if (Battleground * bg = m_caster->ToPlayer()->GetBattleground())
if (bg->GetStatus() == STATUS_WAIT_LEAVE)
return SPELL_FAILED_DONT_REPORT;
@@ -4876,7 +4876,7 @@ SpellCastResult Spell::CheckCast(bool strict)
// Spell casted only on battleground
if ((m_spellInfo->AttributesEx3 & SPELL_ATTR_EX3_BATTLEGROUND) && m_caster->GetTypeId() == TYPEID_PLAYER)
- if (!m_caster->ToPlayer()->InBattleGround())
+ if (!m_caster->ToPlayer()->InBattleground())
return SPELL_FAILED_ONLY_BATTLEGROUNDS;
// do not allow spells to be cast in arenas
@@ -5275,8 +5275,8 @@ SpellCastResult Spell::CheckCast(bool strict)
if (m_spellInfo->Id != 1842 || m_targets.getGOTarget() &&
m_targets.getGOTarget()->GetGOInfo()->type != GAMEOBJECT_TYPE_TRAP)
- if (m_caster->ToPlayer()->InBattleGround() && // In BattleGround players can use only flags and banners
- !m_caster->ToPlayer()->CanUseBattleGroundObject())
+ if (m_caster->ToPlayer()->InBattleground() && // In Battleground players can use only flags and banners
+ !m_caster->ToPlayer()->CanUseBattlegroundObject())
return SPELL_FAILED_TRY_AGAIN;
// get the lock entry
@@ -5398,7 +5398,7 @@ SpellCastResult Spell::CheckCast(bool strict)
{
//Do not allow to cast it before BG starts.
if (m_caster->GetTypeId() == TYPEID_PLAYER)
- if (BattleGround const *bg = m_caster->ToPlayer()->GetBattleGround())
+ if (Battleground const *bg = m_caster->ToPlayer()->GetBattleground())
if (bg->GetStatus() != STATUS_IN_PROGRESS)
return SPELL_FAILED_TRY_AGAIN;
break;
@@ -5547,7 +5547,7 @@ SpellCastResult Spell::CheckCast(bool strict)
return SPELL_FAILED_NO_MOUNTS_ALLOWED;
// Ignore map check if spell have AreaId. AreaId already checked and this prevent special mount spells
- bool AllowMount = !m_caster->GetMap()->IsDungeon() || m_caster->GetMap()->IsBattleGroundOrArena();
+ bool AllowMount = !m_caster->GetMap()->IsDungeon() || m_caster->GetMap()->IsBattlegroundOrArena();
InstanceTemplate const *it = objmgr.GetInstanceTemplate(m_caster->GetMapId());
if (it)
AllowMount = it->allowMount;