diff options
author | QAston <none@none> | 2009-04-10 14:50:36 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-04-10 14:50:36 +0200 |
commit | 5cd251088fe05df33062149b18719133e184cdbf (patch) | |
tree | d14c92b67c4dcecbb9d5abd3fbbc3f91272327e7 /src/game/Unit.cpp | |
parent | 9ba44b7eb8416fe5f32f5ba9b6827cb36cb655de (diff) |
*Apply spellhaste mod only for magic spells with spellfamily.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-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 cd73c5083fe..fbb61a1e1a5 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10458,7 +10458,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_UNK5)) ) + if( !(spellProto->Attributes & (SPELL_ATTR_UNK4|SPELL_ATTR_UNK5)) && spellProto->DmgClass == SPELL_DAMAGE_CLASS_MAGIC && spellProto->SpellFamilyName) castTime = int32( float(castTime) * GetFloatValue(UNIT_MOD_CAST_SPEED)); else { |