aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.cpp
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2011-06-23 13:28:52 +0200
committerQAston <qaston@gmail.com>2011-06-23 13:28:52 +0200
commit3137a82c7cedb71f4a8ef06cb2d6e5741af65c9b (patch)
tree2c2345632592f55129ddd931e8b97391b0e2efb8 /src/server/game/Spells/SpellScript.cpp
parent9d9472e5cc2f761fbc93f8f0e87903898bf48b91 (diff)
Core/Spells: Cleanup in Spell.h:
- Codestyle (fix function naming) and cleanup changes in SpellCastTargets class, also access variables of this class by getters/setters - Move IsQuestTameSpell function to SpellMgr.h - Move UnitList typedef to Unit.h Additionally - add missing copyright notice to SpellAuraEffects.h
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rwxr-xr-xsrc/server/game/Spells/SpellScript.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp
index 59be9c71963..0fe75da3da1 100755
--- a/src/server/game/Spells/SpellScript.cpp
+++ b/src/server/game/Spells/SpellScript.cpp
@@ -266,26 +266,31 @@ SpellEntry const* SpellScript::GetSpellInfo()
return m_spell->GetSpellInfo();
}
-WorldLocation* SpellScript::GetTargetDest()
+WorldLocation const* SpellScript::GetTargetDest()
{
if (m_spell->m_targets.HasDst())
- return &m_spell->m_targets.m_dstPos;
+ return m_spell->m_targets.GetDst();
return NULL;
}
+void SpellScript::SetTargetDest(WorldLocation& loc)
+{
+ m_spell->m_targets.SetDst(loc);
+}
+
Unit* SpellScript::GetTargetUnit()
{
- return m_spell->m_targets.getUnitTarget();
+ return m_spell->m_targets.GetUnitTarget();
}
GameObject* SpellScript::GetTargetGObj()
{
- return m_spell->m_targets.getGOTarget();
+ return m_spell->m_targets.GetGOTarget();
}
Item* SpellScript::GetTargetItem()
{
- return m_spell->m_targets.getItemTarget();
+ return m_spell->m_targets.GetItemTarget();
}
Unit* SpellScript::GetHitUnit()