[9062] Implement two helper-functions for casting spell in creatureAI.

Function will return a cast result, with fail reasons if spell can not be casted (can be used to take alternative action). Please note this is not a full list of cast fail errors/reasons, but will cover a few basic errors that may occur.
The virtual function CanCastSpell() may be adjusted for custom needs from script library if not the default is sufficient.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2009-12-25 13:03:59 +01:00
parent 67dd48e2d4
commit f4c6cf7337
3 changed files with 104 additions and 1 deletions

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9061"
#define REVISION_NR "9062"
#endif // __REVISION_NR_H__