[7019] Fix AP/RAP bonus from stat at aura apply/remove

Not use CLASSMASK_WAND_USERS mask for AP bonus

Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
DiSlord 2009-01-04 17:26:18 +03:00
parent 409ea262a5
commit f893214e2b
3 changed files with 15 additions and 19 deletions

View file

@ -5015,11 +5015,9 @@ void Aura::HandleAuraModRangedAttackPowerOfStatPercent(bool apply, bool Real)
if(!Real)
return;
if(m_target->GetTypeId() == TYPEID_PLAYER && (m_target->getClassMask() & CLASSMASK_WAND_USERS)!=0)
return;
// Recalculate bonus
((Player*)m_target)->UpdateAttackPowerAndDamage(true);
if(m_target->GetTypeId() == TYPEID_PLAYER && (m_target->getClassMask() & CLASSMASK_WAND_USERS))
((Player*)m_target)->UpdateAttackPowerAndDamage(true);
}
void Aura::HandleAuraModAttackPowerOfStatPercent(bool apply, bool Real)
@ -5028,11 +5026,9 @@ void Aura::HandleAuraModAttackPowerOfStatPercent(bool apply, bool Real)
if(!Real)
return;
if(m_target->GetTypeId() == TYPEID_PLAYER && (m_target->getClassMask() & CLASSMASK_WAND_USERS)!=0)
return;
// Recalculate bonus
((Player*)m_target)->UpdateAttackPowerAndDamage(false);
if(m_target->GetTypeId() == TYPEID_PLAYER)
((Player*)m_target)->UpdateAttackPowerAndDamage(false);
}
/********************************/