*Glyph of Siphon Life, Glyph of Life Tap, Glyph of Ice Lance, thanks Sisif

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-31 16:35:54 -07:00
parent 548ba65cf2
commit bf4909cfb6

View File

@@ -5547,16 +5547,25 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
triggered_spell_id = 54181;
break;
}
switch(dummySpell->Id)
switch (dummySpell->Id)
{
// Siphon Life
case 63108:
{
// Glyph of Siphon Life
if (HasAura(56216))
triggerAmount += triggerAmount * 25 / 100;
triggered_spell_id = 63106;
target = this;
basepoints0 = int32(damage*triggerAmount/100);
break;
}
// Glyph of Life Tap
case 63320:
{
triggered_spell_id = 63321;
break;
}
// Nightfall
case 18094:
case 18095:
@@ -9263,7 +9272,13 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
if (spellProto->SpellIconID == 186)
{
if (pVictim->HasAuraState(AURA_STATE_FROZEN, spellProto, this))
DoneTotalMod *= 3.0f;
{
// Glyph of Ice Lance
if (owner->HasAura(56377) && pVictim->getLevel() > owner->getLevel())
DoneTotalMod *= 4.0f;
else
DoneTotalMod *= 3.0f;
}
}
// Torment the weak