From b94c73442243e9e8cd021ba312f257506855c63c Mon Sep 17 00:00:00 2001 From: stormrage-project Date: Thu, 24 Sep 2015 19:22:08 +0200 Subject: [PATCH] [Spell][Mage] Arcane Power Originally from: https://github.com/NoReturn Mage's spell Arcane Power is incorrectly handled as a debuff, means the player gets the benefit from it but the icon is shown in the debuff section of the GUI and also makes the buff immune to enemy dispells/spell steals/etc. Hacky fix --- src/game/Object/SpellMgr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/Object/SpellMgr.cpp b/src/game/Object/SpellMgr.cpp index 8f696913..3338962e 100644 --- a/src/game/Object/SpellMgr.cpp +++ b/src/game/Object/SpellMgr.cpp @@ -848,6 +848,8 @@ bool IsPositiveEffect(SpellEntry const* spellproto, SpellEffectIndex effIndex) switch (spellproto->EffectMiscValue[effIndex]) { case SPELLMOD_COST: // dependent from bas point sign (negative -> positive) + if(spellproto->Id == 12042) // Arcane Power + break; if (spellproto->CalculateSimpleValue(effIndex) > 0) { return false; } break;