From fc796fb879fcf399b7e05636e2876c53b261f8f2 Mon Sep 17 00:00:00 2001 From: Subv Date: Mon, 15 Oct 2012 18:01:16 -0500 Subject: [PATCH] Scripts/Spells: Deleted a deprecated SpellScript (Astral Shift) --- ..._10_15_02_world_spell_script_names_434.sql | 1 + src/server/scripts/Spells/spell_shaman.cpp | 46 ------------------- 2 files changed, 1 insertion(+), 46 deletions(-) create mode 100644 sql/updates/world/2012_10_15_02_world_spell_script_names_434.sql diff --git a/sql/updates/world/2012_10_15_02_world_spell_script_names_434.sql b/sql/updates/world/2012_10_15_02_world_spell_script_names_434.sql new file mode 100644 index 00000000000..d0876fa3cc6 --- /dev/null +++ b/sql/updates/world/2012_10_15_02_world_spell_script_names_434.sql @@ -0,0 +1 @@ +DELETE FROM `spell_script_names` WHERE `scriptname`='spell_sha_astral_shift'; diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index 8e8d0a89cde..8b1fe6f38ba 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -52,51 +52,6 @@ enum ShamanSpells SHAMAN_LAVA_FLOWS_TRIGGERED_R1 = 64694, }; -// 51474 - Astral shift -/// Updated 4.3.4 -class spell_sha_astral_shift : public SpellScriptLoader -{ - public: - spell_sha_astral_shift() : SpellScriptLoader("spell_sha_astral_shift") { } - - class spell_sha_astral_shift_AuraScript : public AuraScript - { - PrepareAuraScript(spell_sha_astral_shift_AuraScript); - - uint32 absorbPct; - - bool Load() - { - absorbPct = GetSpellInfo()->Effects[EFFECT_0].CalcValue(GetCaster()); - return true; - } - - void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/) - { - // Set absorbtion amount to unlimited - amount = -1; - } - - void Absorb(AuraEffect* /*aurEff*/, DamageInfo& dmgInfo, uint32& absorbAmount) - { - // reduces all damage taken while stun, fear or silence - if (GetTarget()->GetUInt32Value(UNIT_FIELD_FLAGS) & (UNIT_FLAG_FLEEING | UNIT_FLAG_SILENCED) || ((GetTarget()->GetUInt32Value(UNIT_FIELD_FLAGS) & UNIT_FLAG_STUNNED) && GetTarget()->HasAuraWithMechanic(1<