diff options
| author | Trazom62 <none@none> | 2010-01-12 20:51:59 +0100 |
|---|---|---|
| committer | Trazom62 <none@none> | 2010-01-12 20:51:59 +0100 |
| commit | 6cf82048a5345cab9fb20930268fce7e64b2fdc1 (patch) | |
| tree | 211e40118270a12c11e36b961a82fa4c007f077f /src/game/UnitAI.h | |
| parent | aeb008d4ef3674fd12ec9143def4f5195ba2005c (diff) | |
Fix normal10/normal25 raid detection in scripts.
Replace HEROIC(n,h) macro by DUNGEON_MODE(n,h), RAID_MODE(n10,n25) and RAID_MODE(n10,n25,h10,h25) functions
Cleanup all HeroicMode like flags in ScriptedAI sub-class
Fix some missing virtual destructors
--HG--
branch : trunk
Diffstat (limited to 'src/game/UnitAI.h')
| -rw-r--r-- | src/game/UnitAI.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/UnitAI.h b/src/game/UnitAI.h index e56ae6a8e0a..c3167101ba6 100644 --- a/src/game/UnitAI.h +++ b/src/game/UnitAI.h @@ -45,6 +45,8 @@ class TRINITY_DLL_SPEC UnitAI Unit * const me; public: explicit UnitAI(Unit *u) : me(u) {} + virtual ~UnitAI() {} + virtual bool CanAIAttack(const Unit *who) const { return true; } virtual void AttackStart(Unit *); virtual void UpdateAI(const uint32 diff) = 0; |
