mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 04:37:16 +00:00
Basic lua packet api, and it works too. Exciting I must say.
This commit is contained in:
1 parent
da178c9fba
commit
bdc83f4f37
7 files changed
+904
-3
No files matched your search
+1
-1
@@ -119,7 +119,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
||||
cur = opts["crit_flat"];
|
||||
if(luabind::type(cur) != LUA_TNIL) {
|
||||
try {
|
||||
options.crit_flat = luabind::object_cast<int>(cur);
|
||||
options.crit_flat = luabind::object_cast<float>(cur);
|
||||
} catch(luabind::cast_failed) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user