From 6d17820af2dd9539cc92266b164707046f6e90b6 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Mon, 12 Jan 2009 21:18:55 +0300 Subject: [PATCH] Fix detect m_attackType for wands Signed-off-by: DiSlord --- src/game/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 07f490780..7bc7f0fba 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -288,7 +288,7 @@ Spell::Spell( Unit* Caster, SpellEntry const *info, bool triggered, uint64 origi break; default: // Wands - if (m_spellInfo->AttributesEx3 & SPELL_ATTR_EX3_REQ_WAND) + if (m_spellInfo->AttributesEx2 & SPELL_ATTR_EX2_AUTOREPEAT_FLAG) m_attackType = RANGED_ATTACK; else m_attackType = BASE_ATTACK;