aboutsummaryrefslogtreecommitdiff
path: root/src/server/game
diff options
context:
space:
mode:
authorQAston <none@none>2010-07-25 02:05:12 +0200
committerQAston <none@none>2010-07-25 02:05:12 +0200
commit7308c112bbda58d1740b9493cc444ad8ce8fd18e (patch)
tree06d922581f7944043788fbbcee007c4c40fb98a6 /src/server/game
parent2bee687fdd4e41633fd8cb2d03589de0a6616276 (diff)
*Add some more comments to SpellScript methods
*Remove forgotten error log --HG-- branch : trunk
Diffstat (limited to 'src/server/game')
-rw-r--r--src/server/game/Spells/Spell.cpp2
-rw-r--r--src/server/game/Spells/SpellScript.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index eb7c2c9b4fa..af5eab71799 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -7097,7 +7097,7 @@ void Spell::SelectTrajTargets()
void Spell::LoadScripts()
{
- sLog.outError("Spell::LoadScripts");
+ sLog.outDebug("Spell::LoadScripts");
sScriptMgr.CreateSpellScripts(m_spellInfo->Id, m_loadedScripts);
for(std::list<SpellScript *>::iterator itr = m_loadedScripts.begin(); itr != m_loadedScripts.end() ;)
{
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h
index d80f3b5468d..b7a83748b75 100644
--- a/src/server/game/Spells/SpellScript.h
+++ b/src/server/game/Spells/SpellScript.h
@@ -124,11 +124,18 @@ class SpellScript : public _SpellScript
Unit * GetCaster();
Unit * GetOriginalCaster();
SpellEntry const * GetSpellInfo();
+
// functions useable only during spell hit on target phase
- Unit * GetEffectUnitTarget();
+
+ // returns: target of current effect if it was Unit otherwise NULL
+ Unit * GetEffectUnitTarget();
+ // returns: target of current effect if it was Creature otherwise NULL
Creature * GetEffectCreatureTarget();
+ // returns: target of current effect if it was Player otherwise NULL
Player * GetEffectPlayerTarget();
+ // returns: target of current effect if it was Item otherwise NULL
Item * GetEffectItemTarget();
+ // returns: target of current effect if it was GameObject otherwise NULL
GameObject * GetEffectGOTarget();
int32 GetEffectValue();
};