[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:
NoFantasy 2009-12-20 23:48:12 +01:00
parent 70c7d955f9
commit 050bff1a1d
3 changed files with 11 additions and 11 deletions

View file

@ -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:

View file

@ -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

View file

@ -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__