Commit 1eb89c3b authored by CubeRuler's avatar CubeRuler

fix

parent 72b1a5eb
--小狐
if not pcall(function() require("expansions/script/c10199990") end) then require("script/c10199990") end
if not pcall(function() require("expansions/script/c33301000") end) then require("script/c33301000") end
local m=33331100
local cm=_G["c"..m]
if not rsv.LF then
......
......@@ -13,12 +13,12 @@ function cm.op(e,tp)
Duel.Release(g,REASON_COST)
end
function cm.buff(c)
local e1=rsef.SV_IMMUNE_EFFECT({c,true},cm.efilter)
local e2=rsef.I({c,true},{m,0},nil,"tg,sp",nil,LOCATION_MZONE,cm.lcon,nil,cm.ltg,cm.lop)
local e1=rsef.SV_IMMUNE_EFFECT(c,cm.efilter)
local e2=rsef.I(c,{m,0},nil,"tg,sp",nil,LOCATION_MZONE,cm.lcon,nil,cm.ltg,cm.lop)
return e1,e2
end
function cm.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActiveType(TYPE_MONSTER)
return te:GetOwnerPlayer()~=e:GetOwnerPlayer() and te:IsActiveType(TYPE_MONSTER)
end
function cm.lcon(e,tp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)
......
......@@ -17,8 +17,8 @@ function cm.op(e,tp,c)
Duel.SendtoHand(tg,nil,REASON_EFFECT)
end
function cm.buff(c)
local e1=rsef.SV_IMMUNE_EFFECT({c,true},cm.imval)
local e2=rsef.I({c,true},{m,0},nil,"des",nil,LOCATION_MZONE,cm.descon,nil,cm.destg,cm.desop)
local e1=rsef.SV_IMMUNE_EFFECT(c,cm.imval)
local e2=rsef.I(c,{m,0},nil,"des",nil,LOCATION_MZONE,cm.descon,nil,cm.destg,cm.desop)
return e1,e2
end
function cm.imval(e,re)
......
......@@ -18,8 +18,8 @@ function cm.op(e,tp)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
function cm.buff(c)
local e1,e2=rsef.SV_INDESTRUCTABLE({c,true},"battle,effect")
local e3=rsef.I({c,true},{m,0},1,"dr,td",nil,LOCATION_MZONE,cm.drcon,nil,cm.drtg,cm.drop)
local e1,e2=rsef.SV_INDESTRUCTABLE(c,"battle,effect")
local e3=rsef.I(c,{m,0},1,"dr,td",nil,LOCATION_MZONE,cm.drcon,nil,cm.drtg,cm.drop)
return e1,e2,e3
end
function cm.drcon(e,tp)
......
......@@ -17,10 +17,11 @@ function cm.op(e,tp)
Duel.SendtoHand(tg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tg)
end
function cm.buff(c)
local e1=rsef.SV_CANNOT_BE_TARGET({c,true},"effect")
function cm.buff(clist)
local e1=rsef.SV_CANNOT_BE_TARGET(clist,"effect")
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
local e2=rsef.I({c,true},{m,0},nil,"td,tg",nil,LOCATION_MZONE,cm.tdcon,nil,cm.tdtg,cm.tdop)
local e2=rsef.I(clist,{m,0},nil,"td,tg",nil,LOCATION_MZONE,cm.tdcon,nil,cm.tdtg,cm.tdop)
local _,c=rsef.GetRegisterCard(clist)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
......@@ -14,7 +14,7 @@ end
function cm.op(e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local tc=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_HAND,0,1,1,nil):GetFirst()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end
function cm.buff(c)
local e1=rsef.FV_LIMIT_PLAYER(c,"rm",nil,cm.tg,{1,0})
......
......@@ -30,7 +30,7 @@ function cm.cfilter(c)
return not c:IsForbidden() and rslf.filter0(c)
end
function cm.op(e,tp)
local c=rscf.GetRelationThisCard()
local c=rscf.GetFaceUpSelf()
if not c then return end
local e1=rsef.SV_IMMUNE_EFFECT(c,cm.imval,nil,rsreset.est_pend)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......@@ -40,10 +40,10 @@ function cm.op(e,tp)
end
end
function cm.imval(e,re)
return re:GetOwnerPlayer()~=e:GetOwnerPlayer() and re:IsActiveType(TYPE_MONSTER)
return re:GetOwnerPlayer()~=e:GetHandlerPlayer() and re:IsActiveType(TYPE_MONSTER)
end
function cm.dfilter(c,tp)
return c:IsControler(tp) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(2553)
return c:IsControler(tp) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(0x2553)
end
function cm.repfilter(c)
return c:IsSetCard(0x2553) and c:IsAbleToDeck() and c:IsFaceup()
......
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