diff --git a/src/game/CreatureAI.h b/src/game/CreatureAI.h index a9857eb2a..4038b675e 100644 --- a/src/game/CreatureAI.h +++ b/src/game/CreatureAI.h @@ -34,6 +34,16 @@ struct SpellEntry; #define TIME_INTERVAL_LOOK 5000 #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 { public: diff --git a/src/game/CreatureEventAI.h b/src/game/CreatureEventAI.h index 6124fb884..6ab1ec4e1 100644 --- a/src/game/CreatureEventAI.h +++ b/src/game/CreatureEventAI.h @@ -137,16 +137,6 @@ enum Target 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 { EFLAG_REPEATABLE = 0x01, //Event repeats diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 93db2cd4a..d3be9202a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9040" + #define REVISION_NR "9041" #endif // __REVISION_NR_H__