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 authored and Aokromes committed 2016-08-15 00:03:33 +02:00
1 parent b797a5edbc
commit c406fb2a73
5 files changed
+51 -1

No files matched your search

+18
View File
@@ -1302,6 +1302,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);