mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
Basic lua packet api, and it works too. Exciting I must say.
This commit is contained in:
+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