Commit 944665f1 authored by salix5's avatar salix5

counter permit

parent 78f31ac3
......@@ -1723,14 +1723,13 @@ int32 scriptlib::card_enable_counter_permit(lua_State *L) {
check_param_count(L, 2);
card* pcard = *(card**) lua_touserdata(L, 1);
int32 countertype = lua_tointeger(L, 2);
uint16 prange;
if(pcard->data.type & TYPE_MONSTER)
uint32 prange;
if(lua_gettop(L) > 2)
prange = lua_tointeger(L, 3);
else if(pcard->data.type & TYPE_MONSTER)
prange = LOCATION_MZONE;
else
prange = LOCATION_SZONE | LOCATION_FZONE;
if(lua_gettop(L) > 2) {
prange |= lua_tointeger(L, 3);
}
effect* peffect = pcard->pduel->new_effect();
peffect->owner = pcard;
peffect->type = EFFECT_TYPE_SINGLE;
......
--マジカル・アブダクター
function c10239627.initial_effect(c)
c:EnableCounterPermit(0x3001,LOCATION_PZONE)
c:EnableCounterPermit(0x3001,LOCATION_PZONE+LOCATION_MZONE)
--pendulum summon
aux.AddPendulumProcedure(c)
--Activate
......
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