Skip to content

Commit

Permalink
Update Card.IsCanBeLinkMaterial (#157)
Browse files Browse the repository at this point in the history
Default the summon player to the reason player
  • Loading branch information
NaimSantos committed Jul 17, 2024
1 parent 3e5b741 commit 11e59fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ LUA_FUNCTION(IsCanBeLinkMaterial) {
card* scard = nullptr;
if(lua_gettop(L) >= 2)
scard = lua_get<card*, true>(L, 2);
auto playerid = lua_get<uint8_t, PLAYER_NONE>(L, 3);
auto playerid = lua_get<uint8_t>(L, 3, pduel->game_field->core.reason_player);
lua_pushboolean(L, self->is_can_be_link_material(scard, playerid));
return 1;
}
Expand Down

0 comments on commit 11e59fd

Please sign in to comment.