mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[9041] Move enum CastFlags from eventAI to creatureAI for access to all AI
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
70c7d955f9
commit
050bff1a1d
3 changed files with 11 additions and 11 deletions
|
|
@ -34,6 +34,16 @@ struct SpellEntry;
|
||||||
#define TIME_INTERVAL_LOOK 5000
|
#define TIME_INTERVAL_LOOK 5000
|
||||||
#define VISIBILITY_RANGE 10000
|
#define VISIBILITY_RANGE 10000
|
||||||
|
|
||||||
|
enum CastFlags
|
||||||
|
{
|
||||||
|
CAST_INTURRUPT_PREVIOUS = 0x01, //Interrupt any spell casting
|
||||||
|
CAST_TRIGGERED = 0x02, //Triggered (this makes spell cost zero mana and have no cast time)
|
||||||
|
CAST_FORCE_CAST = 0x04, //Forces cast even if creature is out of mana or out of range
|
||||||
|
CAST_NO_MELEE_IF_OOM = 0x08, //Prevents creature from entering melee if out of mana or out of range
|
||||||
|
CAST_FORCE_TARGET_SELF = 0x10, //Forces the target to cast this spell on itself
|
||||||
|
CAST_AURA_NOT_PRESENT = 0x20, //Only casts the spell if the target does not have an aura from the spell
|
||||||
|
};
|
||||||
|
|
||||||
class MANGOS_DLL_SPEC CreatureAI
|
class MANGOS_DLL_SPEC CreatureAI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -137,16 +137,6 @@ enum Target
|
||||||
TARGET_T_END
|
TARGET_T_END
|
||||||
};
|
};
|
||||||
|
|
||||||
enum CastFlags
|
|
||||||
{
|
|
||||||
CAST_INTURRUPT_PREVIOUS = 0x01, //Interrupt any spell casting
|
|
||||||
CAST_TRIGGERED = 0x02, //Triggered (this makes spell cost zero mana and have no cast time)
|
|
||||||
CAST_FORCE_CAST = 0x04, //Forces cast even if creature is out of mana or out of range
|
|
||||||
CAST_NO_MELEE_IF_OOM = 0x08, //Prevents creature from entering melee if out of mana or out of range
|
|
||||||
CAST_FORCE_TARGET_SELF = 0x10, //Forces the target to cast this spell on itself
|
|
||||||
CAST_AURA_NOT_PRESENT = 0x20, //Only casts the spell if the target does not have an aura from the spell
|
|
||||||
};
|
|
||||||
|
|
||||||
enum EventFlags
|
enum EventFlags
|
||||||
{
|
{
|
||||||
EFLAG_REPEATABLE = 0x01, //Event repeats
|
EFLAG_REPEATABLE = 0x01, //Event repeats
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9040"
|
#define REVISION_NR "9041"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue