mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[11387] Add dummy and script effect of spell 45958 and dummy aura of spell 45963
Thanks dpedroia15 for parts of 45958. Note: spell 45958 may be processed further with DB table spell_scripts. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
84482b81ac
commit
c4f2b30205
3 changed files with 29 additions and 1 deletions
|
|
@ -1434,6 +1434,11 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
|
||||
break;
|
||||
}
|
||||
case 45958: // Signal Alliance
|
||||
{
|
||||
m_caster->CastSpell(m_caster, m_spellInfo->CalculateSimpleValue(eff_idx), true);
|
||||
return;
|
||||
}
|
||||
case 45980: // Re-Cursive Transmatter Injection
|
||||
{
|
||||
if (m_caster->GetTypeId() == TYPEID_PLAYER && unitTarget)
|
||||
|
|
@ -6600,6 +6605,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
m_caster->SetDisplayId(display_id);
|
||||
return;
|
||||
}
|
||||
case 45958: // Signal Alliance
|
||||
{
|
||||
// "escort" aura not present, so let nothing happen
|
||||
if (!m_caster->HasAura(m_spellInfo->CalculateSimpleValue(eff_idx)))
|
||||
return;
|
||||
// "escort" aura is present so break; and let DB table spell_scripts be used and process further.
|
||||
else
|
||||
break;
|
||||
}
|
||||
case 46203: // Goblin Weather Machine
|
||||
{
|
||||
if (!unitTarget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue