diff options
| author | megamage <none@none> | 2008-10-29 20:00:21 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2008-10-29 20:00:21 -0500 |
| commit | a1131cdb21370baaaa5212707e78af5834874395 (patch) | |
| tree | e06256e25c32103465310dc37d4427a2e5acac4e /src/game/SpellEffects.cpp | |
| parent | 7ea14f94f1e9c2fa3483b4dd3526cd5d67e45161 (diff) | |
[svn] Provide creature dual wield support.
Update glancing damage formula.
Do not daze creatures when other creatures attack from the back (need to find a better way).
Fix the damage calculation of +damage aura.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 419a9820ba3..db0a4d7a4b1 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3440,8 +3440,9 @@ void Spell::EffectDispel(uint32 i) void Spell::EffectDualWield(uint32 /*i*/) { - if (unitTarget->GetTypeId() == TYPEID_PLAYER) - ((Player*)unitTarget)->SetCanDualWield(true); + unitTarget->SetCanDualWield(true); + if(unitTarget->GetTypeId() == TYPEID_UNIT) + ((Creature*)unitTarget)->UpdateDamagePhysical(OFF_ATTACK); } void Spell::EffectPull(uint32 /*i*/) |
