Core/Spells: Fix talent Sword Specialization.

This commit is contained in:
Chaplain committed 2011-09-25 16:42:12 +03:00
1 parent 877579d386
commit 224bb96deb
3 files changed
+12 -8

No files matched your search

+7 -8
View File
@@ -1968,7 +1968,7 @@ void Unit::AttackerStateUpdate (Unit* victim, WeaponAttackType attType, bool ext
return; // ignore ranged case
// melee attack spell casted at main hand attack only - no normal melee dmg dealt
if (attType == BASE_ATTACK && m_currentSpells[CURRENT_MELEE_SPELL])
if (attType == BASE_ATTACK && m_currentSpells[CURRENT_MELEE_SPELL] && !extra)
m_currentSpells[CURRENT_MELEE_SPELL]->cast();
else
{
@@ -1993,15 +1993,14 @@ void Unit::AttackerStateUpdate (Unit* victim, WeaponAttackType attType, bool ext
sLog->outStaticDebug("AttackerStateUpdate: (NPC) %u attacked %u (TypeId: %u) for %u dmg, absorbed %u, blocked %u, resisted %u.",
GetGUIDLow(), victim->GetGUIDLow(), victim->GetTypeId(), damageInfo.damage, damageInfo.absorb, damageInfo.blocked_amount, damageInfo.resist);
}
}
if (!extra && m_extraAttacks)
void Unit::HandleProcExtraAttackFor(Unit* victim)
{
while (m_extraAttacks)
{
while(m_extraAttacks)
{
AttackerStateUpdate(victim, BASE_ATTACK, true);
if (m_extraAttacks > 0)
--m_extraAttacks;
}
AttackerStateUpdate(victim, BASE_ATTACK, true);
--m_extraAttacks;
}
}