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
-17
View File
@@ -859,8 +859,6 @@ namespace Game.Entities
else if (IsSpiritWolf()) //wolf benefit from shaman's attack power
{
float dmg_multiplier = 0.31f;
if (GetOwner().GetAuraEffect(63271, 0) != null) // Glyph of Feral Spirit
dmg_multiplier = 0.61f;
bonusAP = owner.GetTotalAttackPowerValue(WeaponAttackType.BaseAttack) * dmg_multiplier;
SetBonusDamage((int)(owner.GetTotalAttackPowerValue(WeaponAttackType.BaseAttack) * dmg_multiplier));
}
@@ -939,21 +937,6 @@ namespace Game.Entities
float mindamage = ((base_value + weapon_mindamage) * base_pct + total_value) * total_pct;
float maxdamage = ((base_value + weapon_maxdamage) * base_pct + total_value) * total_pct;
var mDummy = GetAuraEffectsByType(AuraType.ModAttackspeed);
foreach (var eff in mDummy)
{
switch (eff.GetSpellInfo().Id)
{
case 61682:
case 61683:
MathFunctions.AddPct(ref mindamage, -eff.GetAmount());
MathFunctions.AddPct(ref maxdamage, -eff.GetAmount());
break;
default:
break;
}
}
SetStatFloatValue(UnitFields.MinDamage, mindamage);
SetStatFloatValue(UnitFields.MaxDamage, maxdamage);
}
+3 -41
View File
@@ -241,17 +241,6 @@ namespace Game.Entities
if (victim.HasAuraState(AuraStateType.Frozen, spellProto, this))
DoneTotalMod *= 3.0f;
break;
case SpellFamilyNames.Priest:
// Smite
if (spellProto.SpellFamilyFlags[0].HasAnyFlag<uint>(0x80))
{
// Glyph of Smite
AuraEffect aurEff = GetAuraEffect(55692, 0);
if (aurEff != null)
if (victim.GetAuraEffect(AuraType.PeriodicDamage, SpellFamilyNames.Priest, new FlagArray128(0x100000, 0, 0), GetGUID()) != null)
MathFunctions.AddPct(ref DoneTotalMod, aurEff.GetAmount());
}
break;
case SpellFamilyNames.Warlock:
// Shadow Bite (30% increase from each dot)
@@ -262,20 +251,11 @@ namespace Game.Entities
MathFunctions.AddPct(ref DoneTotalMod, 30 * count);
}
// Drain Soul - increased damage for targets under 25 % HP
if (spellProto.SpellFamilyFlags[0].HasAnyFlag<uint>(0x00004000))
if (HasAura(100001))
// Drain Soul - increased damage for targets under 20% HP
if (spellProto.Id == 198590)
if (HasAuraState(AuraStateType.HealthLess20Percent))
DoneTotalMod *= 2;
break;
case SpellFamilyNames.Deathknight:
// Sigil of the Vengeful Heart
if (spellProto.SpellFamilyFlags[0].HasAnyFlag<uint>(0x2000))
{
AuraEffect aurEff = GetAuraEffect(64962, 1);
if (aurEff != null)
DoneTotalMod += aurEff.GetAmount();
}
break;
}
return DoneTotalMod;
@@ -723,24 +703,6 @@ namespace Game.Entities
if (FindCurrentSpellBySpellId(5938) != null)
crit_chance = 0.0f;
break;
case SpellFamilyNames.Paladin:
// Flash of light
if (spellProto.SpellFamilyFlags[0].HasAnyFlag(0x40000000u))
{
// Sacred Shield
AuraEffect aura = victim.GetAuraEffect(58597, 1, GetGUID());
if (aura != null)
crit_chance += aura.GetAmount();
break;
}
// Exorcism
else if (spellProto.GetCategory() == 19)
{
if (victim.GetCreatureTypeMask().HasAnyFlag((uint)CreatureType.MaskDemonOrUnDead))
return 100.0f;
break;
}
break;
case SpellFamilyNames.Shaman:
// Lava Burst
if (spellProto.SpellFamilyFlags[1].HasAnyFlag(0x00001000u))
-16
View File
@@ -1834,22 +1834,6 @@ namespace Game.Entities
}
}
// Glyphs which increase duration of selfcasted buffs
if (target == this)
{
switch (spellProto.SpellFamilyName)
{
case SpellFamilyNames.Druid:
if (spellProto.SpellFamilyFlags[0].HasAnyFlag(0x100u))
{
// Glyph of Thorns
AuraEffect aurEff = GetAuraEffect(57862, 0);
if (aurEff != null)
duration += aurEff.GetAmount() * Time.Minute * Time.InMilliseconds;
}
break;
}
}
return Math.Max(duration, 0);
}