From 7bcf8f44aa06054a0fc5b0c5e9c20e2d6b2ba77b Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Tue, 29 Dec 2009 01:59:51 +0100 Subject: [PATCH] [9080] Add custom/preset unMaxTargets for a few spells where info is not present Thanks to kamillys and KAPATEJIb for original code and research! Signed-off-by: NoFantasy --- src/game/Spell.cpp | 24 ++++++++++++++++++++++-- src/shared/revision_nr.h | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 76076d92d..7eba4acb9 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1309,11 +1309,31 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap) // custom target amount cases switch(m_spellInfo->SpellFamilyName) { + case SPELLFAMILY_GENERIC: + { + switch(m_spellInfo->Id) + { + case 28796: // Poison Bolt Volley + case 29213: // Curse of the Plaguebringer + case 31298: // Sleep + unMaxTargets = 3; + break; + case 30843: // Enfeeble + unMaxTargets = 5; + break; + case 54098: // Poison Bolt Volley + case 54835: // Curse of the Plaguebringer + unMaxTargets = 10; + break; + } + break; + } case SPELLFAMILY_DRUID: - // Starfall - if (m_spellInfo->SpellFamilyFlags2 & 0x00000100) + { + if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall unMaxTargets = 2; break; + } default: break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index e45f6ee79..ad763cc05 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 "9079" + #define REVISION_NR "9080" #endif // __REVISION_NR_H__