mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 21:29:29 +00:00
fixup! Make the attacker argument to wesnoth.units.resistance optional
This commit is contained in:
parent
7db49def97
commit
abe117b08f
@ -2424,7 +2424,7 @@ static int intf_unit_resistance(lua_State *L)
|
||||
bool a = false;
|
||||
map_location loc = u.get_location();
|
||||
|
||||
if(lua_isboolean(L, 3) {
|
||||
if(lua_isboolean(L, 3)) {
|
||||
a = luaW_toboolean(L, 3);
|
||||
if(!lua_isnoneornil(L, 4)) {
|
||||
loc = luaW_checklocation(L, 4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user