diff options
| author | Shauren <none@none> | 2010-08-21 20:50:38 +0200 |
|---|---|---|
| committer | Shauren <none@none> | 2010-08-21 20:50:38 +0200 |
| commit | 73d3f210a9df46d3725575663538a69cf58f0fda (patch) | |
| tree | 59dd52cdd7b1e6a099e5ef28aea8aa61f7914c2e /src/server/game/AI/ScriptedAI | |
| parent | 97f98e9bbdb1a4c64738306eaca300b937e3c97c (diff) | |
Scripts/Icecrown Citadel: Add script for Deathbringer Saurfang (only missing alliance outro due to need of spawning and moving a transport)
Scripts/Icecrown Citadel: Corrected Lord Marrowgar, should no longer target tanks with Bone Spike Graveyard, his Coldflame should now spread properly
Core/Scripts: Moved Lady Deathwhisper Mana Barrier handler to scripts
Core/Scripts: Allow AuraScript to prevent default effects by effect index
Core/Scripts: Added Is25ManRaid() method to ScriptedAI, obviously used to check if raid is 25man
Core/Achievements: Pass m_caster to UpdateAchievementCriteria for ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/AI/ScriptedAI')
| -rw-r--r-- | src/server/game/AI/ScriptedAI/ScriptedCreature.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/AI/ScriptedAI/ScriptedCreature.h b/src/server/game/AI/ScriptedAI/ScriptedCreature.h index 6c304ecd346..84e02ae169e 100644 --- a/src/server/game/AI/ScriptedAI/ScriptedCreature.h +++ b/src/server/game/AI/ScriptedAI/ScriptedCreature.h @@ -180,6 +180,9 @@ struct ScriptedAI : public CreatureAI // return the dungeon or raid difficulty Difficulty getDifficulty() { return m_difficulty; } + // return true for 25 man or 25 man heroic mode + bool Is25ManRaid() { return m_difficulty & 1; } + template<class T> inline const T& DUNGEON_MODE(const T& normal5, const T& heroic10) { |
