From d8d346ef1f32e9648c41bc3158b6d68259735b8a Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Wed, 13 Jan 2010 09:58:44 +0100 Subject: Apply haste to nonmagic class spells too. (For instance Arcane Missiles have dmgclass_none ) --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 95360052238..e7e08b8323a 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -12195,7 +12195,7 @@ void Unit::ModSpellCastTime(SpellEntry const* spellProto, int32 & castTime, Spel if (Player* modOwner = GetSpellModOwner()) modOwner->ApplySpellMod(spellProto->Id, SPELLMOD_CASTING_TIME, castTime, spell); - if (!(spellProto->Attributes & (SPELL_ATTR_UNK4|SPELL_ATTR_TRADESPELL)) && spellProto->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && spellProto->SpellFamilyName) + if (!(spellProto->Attributes & (SPELL_ATTR_UNK4|SPELL_ATTR_TRADESPELL)) && spellProto->SpellFamilyName) castTime = int32(float(castTime) * GetFloatValue(UNIT_MOD_CAST_SPEED)); else { -- cgit v1.2.3