mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Spells] Implement PVP resist and duration overrides (#1513)
* Make use of PVP resist field * Implement PVP duration formulas
This commit is contained in:
committed by
GitHub
parent
af6d344e12
commit
41352f77ae
@@ -354,6 +354,16 @@ int Lua_Spell::GetSpellCategory() {
|
||||
return self->spell_category;
|
||||
}
|
||||
|
||||
int Lua_Spell::GetPVPDuration() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->pvp_duration;
|
||||
}
|
||||
|
||||
int Lua_Spell::GetPVPDurationCap() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->pvp_duration_cap;
|
||||
}
|
||||
|
||||
int Lua_Spell::GetCanMGB() {
|
||||
Lua_Safe_Call_Int();
|
||||
return self->can_mgb;
|
||||
@@ -543,6 +553,8 @@ luabind::scope lua_register_spell() {
|
||||
.def("PVPResistCalc", &Lua_Spell::GetPVPResistCalc)
|
||||
.def("PVPResistCap", &Lua_Spell::GetPVPResistCap)
|
||||
.def("SpellCategory", &Lua_Spell::GetSpellCategory)
|
||||
.def("PVPDuration", &Lua_Spell::GetPVPDuration)
|
||||
.def("PVPDurationCap", &Lua_Spell::GetPVPDurationCap)
|
||||
.def("CanMGB", &Lua_Spell::GetCanMGB)
|
||||
.def("DispelFlag", &Lua_Spell::GetDispelFlag)
|
||||
.def("MinResist", &Lua_Spell::GetMinResist)
|
||||
|
||||
Reference in New Issue
Block a user