mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
[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
This commit is contained in:
@@ -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*/)
|
||||
|
||||
Reference in New Issue
Block a user