mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +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:
@@ -333,6 +333,11 @@ int Lua_StatBonuses::Geteffective_casting_level() const {
|
||||
return self->effective_casting_level;
|
||||
}
|
||||
|
||||
int Lua_StatBonuses::Getadjusted_casting_skill() const {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->adjusted_casting_skill;
|
||||
}
|
||||
|
||||
int Lua_StatBonuses::Getreflect_chance() const {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->reflect_chance;
|
||||
@@ -1347,6 +1352,7 @@ luabind::scope lua_register_stat_bonuses() {
|
||||
.def("skillmod", &Lua_StatBonuses::Getskillmod)
|
||||
.def("skillmodmax", &Lua_StatBonuses::Getskillmodmax)
|
||||
.def("effective_casting_level", &Lua_StatBonuses::Geteffective_casting_level)
|
||||
.def("adjusted_casting_skill", &Lua_StatBonuses::Getadjusted_casting_skill)
|
||||
.def("reflect_chance", &Lua_StatBonuses::Getreflect_chance)
|
||||
.def("singingMod", &Lua_StatBonuses::GetsingingMod)
|
||||
.def("Amplification", &Lua_StatBonuses::GetAmplification)
|
||||
|
||||
Reference in New Issue
Block a user