*Revert some changes of 243.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-02 17:33:59 -06:00
parent 224c0912b6
commit 797063d669

View File

@@ -6344,27 +6344,25 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
{
if (dummySpell->Id == 17619)
{
if (procSpell->Category==4) //potion category
if (procSpell->SpellFamilyName == SPELLFAMILY_POTION)
{
for (uint8 i=0;i<3;i++)
{
if (procSpell->Effect[i]==SPELL_EFFECT_HEAL)
{
basepoints0 = damage * 0.4f;
triggered_spell_id = 21399;
}
else if (procSpell->Effect[i]==SPELL_EFFECT_ENERGIZE)
{
basepoints0 = CalculateSpellDamage(procSpell,i,procSpell->EffectBasePoints[i],this) * 0.4f;
triggered_spell_id = 21400;
triggered_spell_id = 21400;
}
else continue;
else
continue;
basepoints0 = CalculateSpellDamage(procSpell,i,procSpell->EffectBasePoints[i],this) * 0.4f;
CastCustomSpell(this,triggered_spell_id,&basepoints0,NULL,NULL,true,castItem,triggeredByAura);
}
if (triggered_spell_id)
return true;
return false;
return true;
}
}
}