Compile fixes
This commit is contained in:
@@ -4059,7 +4059,7 @@ void Unit::RemoveArenaAuras(bool onleave)
|
|||||||
Aura const * aura = aurApp->GetBase();
|
Aura const * aura = aurApp->GetBase();
|
||||||
if (!(aura->GetSpellProto()->AttributesEx4 & SPELL_ATTR4_UNK21) // don't remove stances, shadowform, pally/hunter auras
|
if (!(aura->GetSpellProto()->AttributesEx4 & SPELL_ATTR4_UNK21) // don't remove stances, shadowform, pally/hunter auras
|
||||||
&& !aura->IsPassive() // don't remove passive auras
|
&& !aura->IsPassive() // don't remove passive auras
|
||||||
&& (!(aura->GetSpellProto()->Attributes & SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY) || !(aura->GetSpellProto()->Attributes & SPELL_ATTR0_UNK8)) // not unaffected by invulnerability auras or not having that unknown flag (that seemed the most probable)
|
&& (!(aura->GetSpellProto()->Attributes & SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY)) // not unaffected by invulnerability auras or not having that unknown flag (that seemed the most probable)
|
||||||
&& (aurApp->IsPositive() ^ onleave)) // remove positive buffs on enter, negative buffs on leave
|
&& (aurApp->IsPositive() ^ onleave)) // remove positive buffs on enter, negative buffs on leave
|
||||||
RemoveAura(iter);
|
RemoveAura(iter);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -2629,7 +2629,7 @@ void AuraEffect::HandleShapeshiftBoosts(Unit * target, bool apply) const
|
|||||||
if (itr->second->state == PLAYERSPELL_REMOVED || itr->second->disabled) continue;
|
if (itr->second->state == PLAYERSPELL_REMOVED || itr->second->disabled) continue;
|
||||||
if (itr->first == spellId || itr->first == spellId2) continue;
|
if (itr->first == spellId || itr->first == spellId2) continue;
|
||||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
||||||
if (!spellInfo || !(spellInfo->Attributes & (SPELL_ATTR0_PASSIVE | SPELL_ATTR0_UNK7))) continue;
|
if (!spellInfo || !(spellInfo->Attributes & (SPELL_ATTR0_PASSIVE | SPELL_ATTR0_HIDDEN_CLIENTSIDE))) continue;
|
||||||
if (spellInfo->Stances & (1<<(GetMiscValue()-1)))
|
if (spellInfo->Stances & (1<<(GetMiscValue()-1)))
|
||||||
target->CastSpell(target, itr->first, true, NULL, this);
|
target->CastSpell(target, itr->first, true, NULL, this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user