mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 19:31:59 +01:00
Core/Spells: Deleted old script (partial port of a4cd4d8b87)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user