diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 101c7b7c5..827152b42 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -581,11 +581,13 @@ void Spell::FillTargetMap() SetTargetMap(i, m_spellInfo->EffectImplicitTargetB[i], tmpUnitMap); } break; + case 0: + SetTargetMap(i, m_spellInfo->EffectImplicitTargetA[i], tmpUnitMap); + tmpUnitMap.push_back(m_caster); + break; default: - { - SetTargetMap(i, m_spellInfo->EffectImplicitTargetA[i], tmpUnitMap); - SetTargetMap(i, m_spellInfo->EffectImplicitTargetB[i], tmpUnitMap); - } + SetTargetMap(i, m_spellInfo->EffectImplicitTargetA[i], tmpUnitMap); + SetTargetMap(i, m_spellInfo->EffectImplicitTargetB[i], tmpUnitMap); break; } break; @@ -1304,7 +1306,7 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap) { case SPELLFAMILY_DRUID: // Starfall - if (m_spellInfo->SpellFamilyFlags2 & UI64LIT(0x00000100)) + if (m_spellInfo->SpellFamilyFlags2 & 0x00000100) unMaxTargets = 2; break; default: diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 1bdd7b04e..2172a0b74 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4580,14 +4580,8 @@ void Spell::EffectWeaponDmg(uint32 i) { case SPELLFAMILY_WARRIOR: { - // Whirlwind, single only spell with 2 weapon white damage apply if have - if(m_caster->GetTypeId()==TYPEID_PLAYER && (m_spellInfo->SpellFamilyFlags & UI64LIT(0x00000400000000))) - { - if(((Player*)m_caster)->GetWeaponForAttack(OFF_ATTACK, true, true)) - spell_bonus += m_caster->CalculateDamage (OFF_ATTACK, normalized); - } // Devastate bonus and sunder armor refresh - else if(m_spellInfo->SpellVisual[0] == 12295 && m_spellInfo->SpellIconID == 1508) + if(m_spellInfo->SpellVisual[0] == 12295 && m_spellInfo->SpellIconID == 1508) { uint32 stack = 0; // Need refresh all Sunder Armor auras from this caster diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9ef3be525..e01b5e6a0 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 "9019" + #define REVISION_NR "9020" #endif // __REVISION_NR_H__