Core/Spell: SpellAura Redux (#22794)
* typo and correction * spell aura no longer shared between targets _spellAura isolated * SPELL_AURA_CONTROL_VEHICLE is not strictly single target spell Steam Tank Control and Wyrmrest Commander units can reseat themselves again * Rename 9999_99_99_99_world.sql to 2019_03_08_00_world.sql
This commit is contained in:
1 parent
068d7f826e
commit
81e5943bd0
5 files changed
+37
-16
No files matched your search
@@ -5470,6 +5470,24 @@ class spell_gen_shadowmeld : public AuraScript
|
||||
}
|
||||
};
|
||||
|
||||
enum SiegeTankControl
|
||||
{
|
||||
SPELL_SIEGE_TANK_CONTROL = 47963
|
||||
};
|
||||
|
||||
class spell_gen_vehicle_control_link : public AuraScript
|
||||
{
|
||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
GetTarget()->RemoveAurasDueToSpell(SPELL_SIEGE_TANK_CONTROL); //aurEff->GetAmount()
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
AfterEffectRemove.Register(&spell_gen_vehicle_control_link::OnRemove, EFFECT_1, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_generic_spell_scripts()
|
||||
{
|
||||
new spell_gen_absorb0_hitlimit1();
|
||||
@@ -5607,4 +5625,5 @@ void AddSC_generic_spell_scripts()
|
||||
RegisterSpellScript(spell_gen_rocket_barrage);
|
||||
RegisterSpellScript(spell_gen_face_rage);
|
||||
RegisterSpellScript(spell_gen_shadowmeld);
|
||||
RegisterSpellScript(spell_gen_vehicle_control_link);
|
||||
}
|
||||
Reference in new issue
Block a user