Core/Spell: Remove all raid auras on party leave (#17663)

Core/Spell: Remove all raid auras on party leave
This commit is contained in:
robinsch
2016-08-14 17:26:03 +02:00
committed by jackpoz
parent c515cdc636
commit dd67f4ed96
5 changed files with 51 additions and 1 deletions

View File

@@ -1131,6 +1131,24 @@ bool SpellInfo::IsAllowingDeadTarget() const
return HasAttribute(SPELL_ATTR2_CAN_TARGET_DEAD) || Targets & (TARGET_FLAG_CORPSE_ALLY | TARGET_FLAG_CORPSE_ENEMY | TARGET_FLAG_UNIT_DEAD);
}
bool SpellInfo::IsGroupBuff() const
{
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
switch (Effects[i].TargetA.GetCheckType())
{
case TARGET_CHECK_PARTY:
case TARGET_CHECK_RAID:
case TARGET_CHECK_RAID_CLASS:
return true;
default:
break;
}
}
return false;
}
bool SpellInfo::CanBeUsedInCombat() const
{
return !HasAttribute(SPELL_ATTR0_CANT_USED_IN_COMBAT);