diff options
author | ariel- <ariel-@users.noreply.github.com> | 2016-12-29 03:34:54 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2016-12-29 03:34:54 -0300 |
commit | 584d347b70be521d7431dfe1694b80f2e95b957b (patch) | |
tree | cb123a68079a689dcfc5a7eb1c5a11cf9bd0a6ce /src/server/scripts | |
parent | 0bb1c03fbf3d2253d18873600cfb10d2f54825c6 (diff) |
Core/Spell: Prevent NO_TARGET auras from actually selecting target (same as caster)
- Fixes an issue with generic mount scripts where the dummy aura was applied and removed then the real mount was applied
- Pets would be unsummoned, resummoned and unsummoned again in an instant
Closes #16783
Diffstat (limited to 'src/server/scripts')
-rw-r--r-- | src/server/scripts/Spells/spell_generic.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp index 83b23b7d523..cc62e69132a 100644 --- a/src/server/scripts/Spells/spell_generic.cpp +++ b/src/server/scripts/Spells/spell_generic.cpp @@ -1983,16 +1983,13 @@ class spell_gen_mount : public SpellScriptLoader } if (mount) - { - PreventHitAura(); target->CastSpell(target, mount, true); - } } } void Register() override { - OnEffectHitTarget += SpellEffectFn(spell_gen_mount_SpellScript::HandleMount, EFFECT_2, SPELL_EFFECT_SCRIPT_EFFECT); + OnEffectHitTarget += SpellEffectFn(spell_gen_mount_SpellScript::HandleMount, EFFECT_2, SPELL_EFFECT_SCRIPT_EFFECT); } private: |