aboutsummaryrefslogtreecommitdiff
path: root/src/game/NullCreatureAI.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-09 16:18:08 -0500
committermegamage <none@none>2009-06-09 16:18:08 -0500
commit63c07a5767cd9a1171c6db24db0ff59dd7773235 (patch)
tree42dcec722782d81649891ebda056a2e156f50f24 /src/game/NullCreatureAI.h
parent2625b4b6c61f3e8bb95454a2b97e7434bfb22b0b (diff)
*Do not trigger spells with triggers with scripts. This fixes the bug that shadow fissure of Kel'thuzad deals damage without delay.
--HG-- branch : trunk
Diffstat (limited to 'src/game/NullCreatureAI.h')
-rw-r--r--src/game/NullCreatureAI.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/NullCreatureAI.h b/src/game/NullCreatureAI.h
index 2f481c0a758..84031f179b0 100644
--- a/src/game/NullCreatureAI.h
+++ b/src/game/NullCreatureAI.h
@@ -75,5 +75,14 @@ class TRINITY_DLL_DECL CritterAI : public PassiveAI
void EnterEvadeMode();
};
+class TRINITY_DLL_DECL TriggerAI : public NullCreatureAI
+{
+ public:
+ explicit TriggerAI(Creature *c) : NullCreatureAI(c), casted(false) {}
+ void UpdateAI(const uint32);
+ private:
+ bool casted;
+};
+
#endif