Show
Ignore:
Timestamp:
11/19/08 13:39:20 (17 years ago)
Author:
yumileroy
Message:

[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.

Original author: megamage
Date: 2008-10-29 20:00:21-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/SpellEffects.cpp

    r130 r136  
    34413441void Spell::EffectDualWield(uint32 /*i*/) 
    34423442{ 
    3443     if (unitTarget->GetTypeId() == TYPEID_PLAYER) 
    3444         ((Player*)unitTarget)->SetCanDualWield(true); 
     3443    unitTarget->SetCanDualWield(true); 
     3444    if(unitTarget->GetTypeId() == TYPEID_UNIT) 
     3445        ((Creature*)unitTarget)->UpdateDamagePhysical(OFF_ATTACK); 
    34453446} 
    34463447