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