mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 21:02:41 +00:00
Update zone/spell_effects.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9eb982ef15
commit
fa3bbec739
@ -4693,6 +4693,8 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses, bool suppress, uint32 su
|
|||||||
if (!IsValidSpell(buffs[slot].spellid))
|
if (!IsValidSpell(buffs[slot].spellid))
|
||||||
return;
|
return;
|
||||||
const auto& spell = spells[buffs[slot].spellid];
|
const auto& spell = spells[buffs[slot].spellid];
|
||||||
|
if (IsValidSpell(buffs[slot].spellid)) {
|
||||||
|
const auto &spell = spells[buffs[slot].spellid];
|
||||||
// Restore nimbus (visual aura) effect before processing individual spell effects,
|
// Restore nimbus (visual aura) effect before processing individual spell effects,
|
||||||
// mirroring Client::ReapplyBuff and bot buff restoration behavior.
|
// mirroring Client::ReapplyBuff and bot buff restoration behavior.
|
||||||
if (spell.nimbus_effect) {
|
if (spell.nimbus_effect) {
|
||||||
@ -4709,9 +4711,6 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses, bool suppress, uint32 su
|
|||||||
case SpellEffect::Amnesia:
|
case SpellEffect::Amnesia:
|
||||||
Amnesia(true);
|
Amnesia(true);
|
||||||
break;
|
break;
|
||||||
case SpellEffect::DivineAura:
|
|
||||||
invulnerable = true;
|
|
||||||
break;
|
|
||||||
case SpellEffect::AddMeleeProc:
|
case SpellEffect::AddMeleeProc:
|
||||||
case SpellEffect::WeaponProc:
|
case SpellEffect::WeaponProc:
|
||||||
AddProcToWeapon(GetProcID(buffs[slot].spellid, i), false, 100 + spell.limit_value[i], buffs[slot].spellid, buffs[slot].casterlevel, GetSpellProcLimitTimer(buffs[slot].spellid, ProcType::MELEE_PROC));
|
AddProcToWeapon(GetProcID(buffs[slot].spellid, i), false, 100 + spell.limit_value[i], buffs[slot].spellid, buffs[slot].casterlevel, GetSpellProcLimitTimer(buffs[slot].spellid, ProcType::MELEE_PROC));
|
||||||
@ -4727,6 +4726,7 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses, bool suppress, uint32 su
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
buffs[slot].spellid = SPELL_UNKNOWN;
|
buffs[slot].spellid = SPELL_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user