mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Spell: Remove all raid auras on party leave (#17663)
Core/Spell: Remove all raid auras on party leave
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user