*Add some more comments to SpellScript methods

*Remove forgotten error log

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-25 02:05:12 +02:00
parent 2bee687fdd
commit 7308c112bb
3 changed files with 29 additions and 4 deletions
+8 -1
View File
@@ -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();
};