Commit d47df216 authored by mercury233's avatar mercury233

update Card.IsAbleToHand

parent 2aa3216c
......@@ -2165,6 +2165,8 @@ int32 scriptlib::card_is_able_to_hand(lua_State *L) {
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
uint32 p = pcard->pduel->game_field->core.reason_player;
if(lua_gettop(L) >= 2)
p = (uint32)lua_tointeger(L, 2);
if(pcard->is_capable_send_to_hand(p))
lua_pushboolean(L, 1);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment