mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[c12612] Implement some spells for Black Temple
This commit is contained in:
parent
8a3be45af0
commit
a7a0dad043
4 changed files with 34 additions and 1 deletions
|
|
@ -1501,6 +1501,14 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
|
|||
m_caster->CastSpell(unitTarget, 40932, true);
|
||||
return;
|
||||
}
|
||||
case 40869: // Fatal Attraction
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
m_caster->CastSpell(unitTarget, 41001, true);
|
||||
return;
|
||||
}
|
||||
case 40962: // Blade's Edge Terrace Demon Boss Summon Branch
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
|
|
@ -1517,6 +1525,16 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
|
|||
unitTarget->CastSpell(unitTarget, spell_id, true);
|
||||
return;
|
||||
}
|
||||
case 41333: // Empyreal Equivalency
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
// Equilize the health of all targets based on the corresponding health percent
|
||||
float health_diff = (float)unitTarget->GetMaxHealth() / (float)m_caster->GetMaxHealth();
|
||||
unitTarget->SetHealth(m_caster->GetHealth() * health_diff);
|
||||
return;
|
||||
}
|
||||
case 42287: // Salvage Wreckage
|
||||
{
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue