mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Make SPA 112 affect fizzle rate not effective caster level
Per dev quote, SPA 112 "Modifies casting skills of the affected entity by BaseEffect for the purposes of determining whether or not a fizzle occurs when casting spells." Fixes issues caused by having a spell with this effect on caster such as wrong target debuff durations and buff refreshes not taking hold.
This commit is contained in:
@@ -752,6 +752,8 @@ bool Client::CheckFizzle(uint16 spell_id)
|
||||
|
||||
act_skill = GetSkill(spells[spell_id].skill);
|
||||
act_skill += GetLevel(); // maximum of whatever the client can cheat
|
||||
act_skill += itembonuses.adjusted_casting_skill + spellbonuses.adjusted_casting_skill + aabonuses.adjusted_casting_skill;
|
||||
Log(Logs::Detail, Logs::Spells, "Adjusted casting skill: %d+%d+%d+%d+%d=%d", GetSkill(spells[spell_id].skill), GetLevel(), itembonuses.adjusted_casting_skill, spellbonuses.adjusted_casting_skill, aabonuses.adjusted_casting_skill, act_skill);
|
||||
|
||||
//spell specialization
|
||||
float specialize = GetSpecializeSkillValue(spell_id);
|
||||
|
||||
Reference in New Issue
Block a user