Core/Spells: Removed obsolete spell fixes

This commit is contained in:
hondacrx
2018-01-03 14:04:47 -05:00
parent 9d3e87fd87
commit d04e04548b
5 changed files with 7 additions and 115 deletions
-13
View File
@@ -1249,13 +1249,6 @@ namespace Game.Spells
}
}
break;
case SpellFamilyNames.Rogue:
// Sprint (skip non player casted spells by category)
if (GetSpellInfo().SpellFamilyFlags[0].HasAnyFlag(0x40u) && GetSpellInfo().GetCategory() == 44)
// in official maybe there is only one icon?
if (target.HasAura(58039)) // Glyph of Blurred Speed
target.CastSpell(target, 61922, true); // Sprint (waterwalk)
break;
}
}
// mods at aura remove
@@ -1316,12 +1309,6 @@ namespace Game.Spells
if (GetId() == 1784)
target.RemoveAurasWithFamily(SpellFamilyNames.Rogue, new FlagArray128(0x0000800, 0, 0), target.GetGUID());
break;
case SpellFamilyNames.Hunter:
// Glyph of Freezing Trap
if (GetSpellInfo().SpellFamilyFlags[0].HasAnyFlag(0x00000008u))
if (caster != null && caster.HasAura(56845))
target.CastSpell(target, 61394, true);
break;
}
}
+4 -28
View File
@@ -1281,26 +1281,15 @@ namespace Game.Spells
return;
// Some level depends spells
int level_multiplier = 0;
int level_diff = 0;
switch (m_spellInfo.Id)
{
case 9512: // Restore Energy
level_diff = (int)m_caster.getLevel() - 40;
level_multiplier = 2;
break;
case 24571: // Blood Fury
level_diff = (int)m_caster.getLevel() - 60;
level_multiplier = 10;
// Instantly increases your rage by ${(300-10*$max(0,$PL-60))/10}.
damage -= 10 * (int)Math.Max(0, Math.Min(30, m_caster.getLevel() - 60));
break;
case 24532: // Burst of Energy
level_diff = (int)m_caster.getLevel() - 60;
level_multiplier = 4;
break;
case 31930: // Judgements of the Wise
case 63375: // Primal Wisdom
case 68082: // Glyph of Seal of Command
damage = (int)MathFunctions.CalculatePct(unitTarget.GetCreateMana(), damage);
// Instantly increases your energy by ${60-4*$max(0,$min(15,$PL-60))}.
damage -= 4 * (int)Math.Max(0, Math.Min(15, m_caster.getLevel() - 60));
break;
case 67490: // Runic Mana Injector (mana gain increased by 25% for engineers - 3.2.0 patch change)
{
@@ -1314,12 +1303,6 @@ namespace Game.Spells
break;
}
if (level_diff > 0)
damage -= level_multiplier * level_diff;
if (damage < 0 && power != PowerType.LunarPower)
return;
m_caster.EnergizeBySpell(unitTarget, m_spellInfo.Id, damage, power);
// Mad Alchemist's Potion
@@ -3336,13 +3319,6 @@ namespace Game.Spells
m_caster.CastCustomSpell(totem, 55277, basepoints0, 0, 0, true);
}
}
// Glyph of Stoneclaw Totem
AuraEffect aur = unitTarget.GetAuraEffect(63298, 0);
if (aur != null)
{
basepoints0 *= aur.GetAmount();
m_caster.CastCustomSpell(unitTarget, 55277, basepoints0, 0, 0, true);
}
break;
}
case 45668: // Ultra-Advanced Proto-Typical Shortening Blaster