mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[11615] Apply normal stealth at expire spell 1856 and ranks
Instead current at apply mode.
This commit is contained in:
parent
c11a2b68b7
commit
0d9e3c8e43
3 changed files with 17 additions and 13 deletions
|
|
@ -3327,17 +3327,6 @@ void Spell::EffectTriggerSpell(SpellEffectIndex effIndex)
|
|||
unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOD_ROOT);
|
||||
unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOD_DECREASE_SPEED);
|
||||
unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOD_STALKED);
|
||||
|
||||
// if this spell is given to NPC it must handle rest by it's own AI
|
||||
if (unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
uint32 spellId = 1784;
|
||||
// reset cooldown on it if needed
|
||||
if (((Player*)unitTarget)->HasSpellCooldown(spellId))
|
||||
((Player*)unitTarget)->RemoveSpellCooldown(spellId);
|
||||
|
||||
m_caster->CastSpell(unitTarget, spellId, true);
|
||||
return;
|
||||
}
|
||||
// just skip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue