Core/Spells: Deleted old script (partial port of a4cd4d8b87)

This commit is contained in:
Shauren
2021-12-11 21:40:30 +01:00
parent a04d8fc71a
commit 4595e63dd7

View File

@@ -3287,38 +3287,6 @@ void Spell::EffectScriptEffect()
}
return;
}
case 60123: // Lightwell
{
if (m_caster->GetTypeId() != TYPEID_UNIT || !m_caster->ToCreature()->IsSummon())
return;
uint32 spell_heal;
switch (m_caster->GetEntry())
{
case 31897: spell_heal = 7001; break;
case 31896: spell_heal = 27873; break;
case 31895: spell_heal = 27874; break;
case 31894: spell_heal = 28276; break;
case 31893: spell_heal = 48084; break;
case 31883: spell_heal = 48085; break;
default:
TC_LOG_ERROR("spells", "Unknown Lightwell spell caster %u.", m_caster->GetEntry());
return;
}
// proc a spellcast
if (Aura* chargesAura = m_caster->ToCreature()->GetAura(59907))
{
m_caster->CastSpell(unitTarget, spell_heal, CastSpellExtraArgs(TRIGGERED_FULL_MASK)
.SetOriginalCaster(m_caster->ToCreature()->ToTempSummon()->GetSummonerGUID())
.SetOriginalCastId(m_castId));
if (chargesAura->ModCharges(-1))
m_caster->ToCreature()->ToTempSummon()->UnSummon();
}
return;
}
case 45668: // Ultra-Advanced Proto-Typical Shortening Blaster
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)