Commit 70d42949 authored by mercury233's avatar mercury233
parents 602d544a 332aea23
...@@ -1569,6 +1569,8 @@ int32 scriptlib::card_get_hand_synchro(lua_State *L) { ...@@ -1569,6 +1569,8 @@ int32 scriptlib::card_get_hand_synchro(lua_State *L) {
check_param_count(L, 1); check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 1); check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**)lua_touserdata(L, 1); card* pcard = *(card**)lua_touserdata(L, 1);
if(!(pcard->current.location & LOCATION_MZONE))
return 0;
effect* peffect = pcard->is_affected_by_effect(EFFECT_HAND_SYNCHRO); effect* peffect = pcard->is_affected_by_effect(EFFECT_HAND_SYNCHRO);
if(peffect) { if(peffect) {
interpreter::effect2value(L, peffect); interpreter::effect2value(L, peffect);
......
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