Core/Spells: Implemented SPELL_AURA_SUPPRESS_ITEM_PASSIVE_EFFECT_BY_SPELL_LABEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/6e4a90d2749c7675eebbb3eb41cd50ecaab78b7e)
This commit is contained in:
@@ -1468,6 +1468,10 @@ namespace Game.Spells
|
||||
|
||||
bool CanBeAppliedOn(Unit target)
|
||||
{
|
||||
foreach (uint label in GetSpellInfo().Labels)
|
||||
if (target.HasAuraTypeWithMiscvalue(AuraType.SuppressItemPassiveEffectBySpellLabel, (int)label))
|
||||
return false;
|
||||
|
||||
// unit not in world or during remove from world
|
||||
if (!target.IsInWorld || target.IsDuringRemoveFromWorld())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user