mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-26 03:02:27 +00:00
Update zone/spell_effects.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
dffc4610d5
commit
43a146da6d
@ -4690,6 +4690,8 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses, bool suppress, uint32 su
|
|||||||
client->ReapplyBuff(slot, true);
|
client->ReapplyBuff(slot, true);
|
||||||
} else {
|
} else {
|
||||||
// Reapply visual/state effects for non-client mobs (pets, NPCs, bots)
|
// Reapply visual/state effects for non-client mobs (pets, NPCs, bots)
|
||||||
|
if (!IsValidSpell(buffs[slot].spellid))
|
||||||
|
return false;
|
||||||
const auto& spell = spells[buffs[slot].spellid];
|
const auto& spell = spells[buffs[slot].spellid];
|
||||||
for (int i = 0; i < EFFECT_COUNT; i++) {
|
for (int i = 0; i < EFFECT_COUNT; i++) {
|
||||||
switch (spell.effect_id[i]) {
|
switch (spell.effect_id[i]) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user