mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
67dd48e2d4
commit
f4c6cf7337
3 changed files with 104 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9061"
|
||||
#define REVISION_NR "9062"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue