*Add some more comments to SpellScript methods
*Remove forgotten error log --HG-- branch : trunk
This commit is contained in:
@@ -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() ;)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user