mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 19:37:04 +00:00
[11635] Revert "[11615] Apply normal stealth at expire spell 1856 and ranks"
This reverts commit 1c0bd32c22b7d0116fab8d32b3b7e4f92c039b38. Thanks to SeT for providing proves for commit wrong way work.
This commit is contained in:
parent
8a4230d765
commit
f7e3b33eaf
3 changed files with 13 additions and 17 deletions
|
|
@ -4422,23 +4422,8 @@ void Aura::HandleModStealth(bool apply, bool Real)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!Real)
|
||||
return;
|
||||
|
||||
// Vanish (triggered, normal stealth need apply before remove advanced stealth)
|
||||
if (target->GetTypeId() == TYPEID_PLAYER && m_removeMode == AURA_REMOVE_BY_EXPIRE &&
|
||||
GetSpellProto()->IsFitToFamily(SPELLFAMILY_ROGUE, UI64LIT(0x000000000800)))
|
||||
{
|
||||
uint32 spellId = 1784; // Stealth
|
||||
// reset cooldown on it if needed
|
||||
if (((Player*)target)->HasSpellCooldown(spellId))
|
||||
((Player*)target)->RemoveSpellCooldown(spellId);
|
||||
|
||||
target->CastSpell(target, spellId, true);
|
||||
}
|
||||
|
||||
// only at real aura remove of _last_ SPELL_AURA_MOD_STEALTH
|
||||
if (!target->HasAuraType(SPELL_AURA_MOD_STEALTH))
|
||||
if (Real && !target->HasAuraType(SPELL_AURA_MOD_STEALTH))
|
||||
{
|
||||
// if no GM invisibility
|
||||
if (target->GetVisibility()!=VISIBILITY_OFF)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue