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