From 11e59fd84bdf40cd3aa0ab8b35435257e617f101 Mon Sep 17 00:00:00 2001 From: Naim Date: Wed, 17 Jul 2024 13:56:39 -0300 Subject: [PATCH] Update Card.IsCanBeLinkMaterial (#157) Default the summon player to the reason player --- libcard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcard.cpp b/libcard.cpp index c8da61ff..bfa0e0a4 100644 --- a/libcard.cpp +++ b/libcard.cpp @@ -1914,7 +1914,7 @@ LUA_FUNCTION(IsCanBeLinkMaterial) { card* scard = nullptr; if(lua_gettop(L) >= 2) scard = lua_get(L, 2); - auto playerid = lua_get(L, 3); + auto playerid = lua_get(L, 3, pduel->game_field->core.reason_player); lua_pushboolean(L, self->is_can_be_link_material(scard, playerid)); return 1; }