diff options
| author | thenecromancer <none@none> | 2010-01-13 09:58:44 +0100 |
|---|---|---|
| committer | thenecromancer <none@none> | 2010-01-13 09:58:44 +0100 |
| commit | d8d346ef1f32e9648c41bc3158b6d68259735b8a (patch) | |
| tree | 9e03117718068ccf2e6fd25ba25cb314f3e77ded /src | |
| parent | 2b94d181cd3a4a97f0f30c9355aec2443d8ad10f (diff) | |
Apply haste to nonmagic class spells too. (For instance Arcane Missiles have dmgclass_none )
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
