*Use amount check instead of positivity check for aura effects.

*Fix Overkill and Master of subtlety.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-06-17 01:12:40 +02:00
1 parent d906ea05d6
commit 9bb07ab5a9
3 files changed
+23 -21

No files matched your search

+11 -13
View File
@@ -4915,6 +4915,17 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
}
return false;
}
// Overkill
case 58426:
{
if (procEx & AURA_REMOVE_PROC_EX_MASK)
triggered_spell_id = 58428;
else
{
triggered_spell_id = 58427;
}
break;
}
// Eye for an Eye
case 9799:
case 25988:
@@ -5033,18 +5044,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
triggered_spell_id = 34650;
break;
}
// Overkill
case 58426:
{
if (procEx & AURA_REMOVE_PROC_EX_MASK)
triggered_spell_id = 58428;
else
{
basepoints0 = -triggerAmount;
triggered_spell_id = 58427;
}
break;
}
// Mark of Malice
case 33493:
{
@@ -13486,7 +13485,6 @@ bool Unit::IsTriggeredAtSpellProcEvent(Unit *pVictim, Aura * aura, SpellEntry co
{
modOwner->ApplySpellMod(spellProto->Id,SPELLMOD_CHANCE_OF_SUCCESS,chance);
}
return roll_chance_f(chance);
}