From 61443d758320e747bbdb46d63d04da7638852f18 Mon Sep 17 00:00:00 2001 From: ApoC Date: Sun, 5 Jul 2009 20:52:17 +0200 Subject: [PATCH] [8130] Allow stacking spell 18820 with 1459 and ranks Signed-off-by: ApoC --- src/game/SpellMgr.cpp | 15 ++++++++++++--- src/shared/revision_nr.h | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 6f68c336d..1dd4544d6 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -334,7 +334,7 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex) case 11196: // Recently Bandaged return false; // some spells have unclear target modes for selection, so just make effect positive - case 27184: + case 27184: case 27190: case 27191: case 27201: @@ -1126,7 +1126,7 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons if(!spellInfo_1 || !spellInfo_2) return false; - if(spellInfo_1->Id == spellId_2) + if(spellId_1 == spellId_2) return false; //I think we don't check this correctly because i need a exception for spell: @@ -1193,6 +1193,11 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons break; } + case SPELLFAMILY_MAGE: + // Arcane Intellect and Insight + if( spellInfo_2->SpellIconID == 125 && spellInfo_1->Id == 18820 ) + return false; + break; case SPELLFAMILY_WARRIOR: { // Scroll of Protection and Defensive Stance (multi-family check) @@ -1274,6 +1279,10 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons if( spellInfo_1->Id == 11129 && spellInfo_2->SpellIconID == 33 && spellInfo_2->SpellVisual[0] == 321 ) return false; + // Arcane Intellect and Insight + if( spellInfo_1->SpellIconID == 125 && spellInfo_2->Id == 18820 ) + return false; + break; case SPELLFAMILY_WARLOCK: if( spellInfo_2->SpellFamilyName == SPELLFAMILY_WARLOCK ) @@ -2610,7 +2619,7 @@ SpellCastResult SpellMgr::GetSpellAllowedInLocationError(SpellEntry const *spell // Try search in next group groupEntry = sAreaGroupStore.LookupEntry(groupEntry->nextGroup); } - + if(!found) return SPELL_FAILED_INCORRECT_AREA; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 277d379df..64f9ce72a 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 "8129" + #define REVISION_NR "8130" #endif // __REVISION_NR_H__