Commit 7ceeb5fd authored by edo9300's avatar edo9300 Committed by mercury233

Fixed card_is_not_tuner (#112)

parent 181ccafe
...@@ -843,7 +843,7 @@ int32 scriptlib::card_is_not_tuner(lua_State *L) { ...@@ -843,7 +843,7 @@ int32 scriptlib::card_is_not_tuner(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);
uint32 type = pcard->get_type(); uint32 type = pcard->get_synchro_type();
if(!(type & TYPE_TUNER) || pcard->is_affected_by_effect(EFFECT_NONTUNER)) if(!(type & TYPE_TUNER) || pcard->is_affected_by_effect(EFFECT_NONTUNER))
lua_pushboolean(L, 1); lua_pushboolean(L, 1);
else 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