[Cleanup] Remove IsAffectedByBuff() (#3068)

# Notes
- This is unused.
This commit is contained in:
Alex King 2023-03-16 20:24:44 -04:00 committed by GitHub
parent a0e6fce057
commit 939fc79d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -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);

View File

@ -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();