[8713] Moved calculation of absorbed damage amount into Unit::HandleProcTriggerSpell for spell 62606.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
Corfen 2009-10-23 00:29:35 +02:00 committed by ApoC
parent 86a6c952b8
commit 2588cdabfc
3 changed files with 7 additions and 6 deletions

View file

@ -7235,6 +7235,12 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
return false;
break;
}
// Druid - Savage Defense
case 62606:
{
basepoints[0] = int32(GetTotalAttackPowerValue(BASE_ATTACK) * triggerAmount / 100);
break;
}
}
if( cooldown && GetTypeId()==TYPEID_PLAYER && ((Player*)this)->HasSpellCooldown(trigger_spell_id))