mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-02 18:32:25 +00:00
Merge pull request #1457 from Natedog2012/master_copy2
Add Rank to lua Spell
This commit is contained in:
commit
696d875624
@ -474,6 +474,11 @@ int Lua_Spell::GetDamageShieldType() {
|
|||||||
return self->DamageShieldType;
|
return self->DamageShieldType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Lua_Spell::GetRank() {
|
||||||
|
Lua_Safe_Call_Int();
|
||||||
|
return self->rank;
|
||||||
|
}
|
||||||
|
|
||||||
luabind::scope lua_register_spell() {
|
luabind::scope lua_register_spell() {
|
||||||
return luabind::class_<Lua_Spell>("Spell")
|
return luabind::class_<Lua_Spell>("Spell")
|
||||||
.def(luabind::constructor<>())
|
.def(luabind::constructor<>())
|
||||||
@ -561,7 +566,8 @@ luabind::scope lua_register_spell() {
|
|||||||
.def("MaxDist", &Lua_Spell::GetMaxDist)
|
.def("MaxDist", &Lua_Spell::GetMaxDist)
|
||||||
.def("MaxDistMod", &Lua_Spell::GetMaxDistMod)
|
.def("MaxDistMod", &Lua_Spell::GetMaxDistMod)
|
||||||
.def("MinRange", &Lua_Spell::GetMinRange)
|
.def("MinRange", &Lua_Spell::GetMinRange)
|
||||||
.def("DamageShieldType", &Lua_Spell::GetDamageShieldType);
|
.def("DamageShieldType", &Lua_Spell::GetDamageShieldType)
|
||||||
|
.def("Rank", &Lua_Spell::GetRank);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -107,6 +107,7 @@ public:
|
|||||||
float GetMaxDistMod();
|
float GetMaxDistMod();
|
||||||
float GetMinRange();
|
float GetMinRange();
|
||||||
int GetDamageShieldType();
|
int GetDamageShieldType();
|
||||||
|
int GetRank();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user