*Fix spell Savage Defense's reducing damage amount.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-07-25 01:50:55 +02:00
parent 4096b616b1
commit 8c4e30eb07
+6
View File
@@ -7866,6 +7866,12 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
((Player*)this)->RemoveCategoryCooldown(82); ((Player*)this)->RemoveCategoryCooldown(82);
return true; return true;
} }
// Savage Defense
case 62606:
{
basepoints0 = int32(GetTotalAttackPowerValue(BASE_ATTACK) * triggerAmount / 100.f);
break;
}
} }
if( cooldown && GetTypeId()==TYPEID_PLAYER && ((Player*)this)->HasSpellCooldown(trigger_spell_id)) if( cooldown && GetTypeId()==TYPEID_PLAYER && ((Player*)this)->HasSpellCooldown(trigger_spell_id))