aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-10-29 20:00:21 -0500
committermegamage <none@none>2008-10-29 20:00:21 -0500
commita1131cdb21370baaaa5212707e78af5834874395 (patch)
treee06256e25c32103465310dc37d4427a2e5acac4e /src/game/SpellEffects.cpp
parent7ea14f94f1e9c2fa3483b4dd3526cd5d67e45161 (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.cpp5
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*/)