diff options
| author | joschiwald <joschiwald.trinity@gmail.com> | 2018-01-03 18:10:47 +0100 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2018-01-03 18:10:47 +0100 |
| commit | 78ba1d76ddc65add3be3ccbb08c750c6a5c8f5a5 (patch) | |
| tree | 3cc6083b7bf6df8e229e89c6b587ad36d8286d4c /src/server/game/Spells | |
| parent | 8199eef81cad464bb43f3613ed884a2c8fc3973d (diff) | |
Core/Spells: Removed obsolete spell fixes
Diffstat (limited to 'src/server/game/Spells')
| -rw-r--r-- | src/server/game/Spells/Auras/SpellAuras.cpp | 15 | ||||
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 31 |
2 files changed, 4 insertions, 42 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 93decad221c..2a6b9ac227d 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -1317,13 +1317,6 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b } } break; - case SPELLFAMILY_ROGUE: - // Sprint (skip non player cast spells by category) - if (GetSpellInfo()->SpellFamilyFlags[0] & 0x40 && 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 @@ -1382,14 +1375,6 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b if (GetId() == 1784) target->RemoveAurasWithFamily(SPELLFAMILY_ROGUE, flag128(0x0000800, 0, 0, 0), target->GetGUID()); break; - case SPELLFAMILY_DEATHKNIGHT: - break; - case SPELLFAMILY_HUNTER: - // Glyph of Freezing Trap - if (GetSpellInfo()->SpellFamilyFlags[0] & 0x00000008) - if (caster && caster->HasAura(56845)) - target->CastSpell(target, 61394, true); - break; } } diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 54bda15ee37..845de8f534c 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1549,26 +1549,15 @@ void Spell::EffectEnergize(SpellEffIndex /*effIndex*/) return; // Some level depends spells - int level_multiplier = 0; - int level_diff = 0; switch (m_spellInfo->Id) { - case 9512: // Restore Energy - level_diff = m_caster->getLevel() - 40; - level_multiplier = 2; - break; case 24571: // Blood Fury - level_diff = m_caster->getLevel() - 60; - level_multiplier = 10; + // Instantly increases your rage by ${(300-10*$max(0,$PL-60))/10}. + damage -= 10 * std::max(0, std::min(30, m_caster->getLevel() - 60)); break; case 24532: // Burst of Energy - level_diff = 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 = int32(CalculatePct(unitTarget->GetCreateMana(), damage)); + // Instantly increases your energy by ${60-4*$max(0,$min(15,$PL-60))}. + damage -= 4 * std::max(0, std::min(15, m_caster->getLevel() - 60)); break; case 67490: // Runic Mana Injector (mana gain increased by 25% for engineers - 3.2.0 patch change) { @@ -1581,12 +1570,6 @@ void Spell::EffectEnergize(SpellEffIndex /*effIndex*/) break; } - if (level_diff > 0) - damage -= level_multiplier * level_diff; - - if (damage < 0 && power != POWER_LUNAR_POWER) - return; - m_caster->EnergizeBySpell(unitTarget, m_spellInfo->Id, damage, power); // Mad Alchemist's Potion @@ -3522,12 +3505,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) m_caster->CastCustomSpell(totem, 55277, &basepoints0, NULL, NULL, true); } } - // Glyph of Stoneclaw Totem - if (AuraEffect* aur=unitTarget->GetAuraEffect(63298, 0)) - { - basepoints0 *= aur->GetAmount(); - m_caster->CastCustomSpell(unitTarget, 55277, &basepoints0, NULL, NULL, true); - } break; } case 45668: // Ultra-Advanced Proto-Typical Shortening Blaster |
