mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[9946] Prevent remove unexpected for remove spell at cast 35729.
Also drop removed spell call for spells 19574/34471. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
33c9af577c
commit
c2fc89c86c
3 changed files with 7 additions and 15 deletions
|
|
@ -2622,11 +2622,11 @@ void Spell::EffectTriggerSpell(SpellEffectIndex effIndex)
|
|||
Unit::AuraMap& Auras = unitTarget->GetAuras();
|
||||
for(Unit::AuraMap::iterator iter = Auras.begin(); iter != Auras.end(); ++iter)
|
||||
{
|
||||
// remove all harmful spells on you...
|
||||
if( // ignore positive and passive auras
|
||||
!iter->second->IsPositive() && !iter->second->IsPassive() &&
|
||||
// ignore physical auras
|
||||
(GetSpellSchoolMask(iter->second->GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)==0 )
|
||||
// Remove all harmful spells on you except positive/passive/physical auras
|
||||
if( !iter->second->IsPositive()
|
||||
&& !iter->second->IsPassive()
|
||||
&& !iter->second->IsDeathPersistent()
|
||||
&& (GetSpellSchoolMask(iter->second->GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL) == 0 )
|
||||
{
|
||||
m_caster->RemoveAurasDueToSpell(iter->second->GetSpellProto()->Id);
|
||||
iter = Auras.begin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue