From 939fc79d19ffc8fce4fe62573d62e9b4e3cc1277 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Thu, 16 Mar 2023 20:24:44 -0400 Subject: [PATCH] [Cleanup] Remove IsAffectedByBuff() (#3068) # Notes - This is unused. --- zone/mob.h | 1 - zone/spells.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/zone/mob.h b/zone/mob.h index ae26567e4..c7415d092 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -416,7 +416,6 @@ public: void BuffFadeBySlot(int slot, bool iRecalcBonuses = true); void BuffFadeDetrimentalByCaster(Mob *caster); void BuffFadeBySitModifier(); - bool IsAffectedByBuff(uint16 spell_id); bool IsAffectedByBuffByGlobalGroup(GlobalGroup group); void BuffModifyDurationBySpellID(uint16 spell_id, int32 newDuration); int AddBuff(Mob *caster, const uint16 spell_id, int duration = 0, int32 level_override = -1, bool disable_buff_overwrite = false); diff --git a/zone/spells.cpp b/zone/spells.cpp index e82106889..fd382ff95 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -4609,11 +4609,6 @@ void Mob::BuffFadeByEffect(int effect_id, int slot_to_skip) } } -bool Mob::IsAffectedByBuff(uint16 spell_id) -{ - return FindBuff(spell_id); -} - bool Mob::IsAffectedByBuffByGlobalGroup(GlobalGroup group) { int buff_count = GetMaxTotalSlots();