Commit 1c312e37 authored by Nemo Ma's avatar Nemo Ma

miant

parent 75735548
No preview for this file type
No preview for this file type
......@@ -66,7 +66,8 @@ function cm.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e5:SetRange(LOCATION_FZONE)
e5:SetTargetRange(1,1)
e5:SetValue(cm.drval)
e5:SetCondition(cm.drcon)
e5:SetValue(2)
c:RegisterEffect(e5)
--recover
local e6=Effect.CreateEffect(c)
......@@ -142,15 +143,8 @@ function cm.sumval(e,c)
local sp=cm.GetNorthPlayer(e:GetHandler(),e:GetHandlerPlayer())
return c:IsControler(sp)
end
function cm.drval(e)
local tp=Duel.GetTurnPlayer()
local sp=cm.GetNorthPlayer(e:GetHandler(),e:GetHandlerPlayer())
local dr=Duel.GetDrawCount(tp)
if tp==1-sp then
return 2
else
return dr
end
function cm.drcon(e)
return Duel.GetTurnPlayer()=1-cm.GetNorthPlayer(e:GetHandler(),e:GetHandlerPlayer())
end
function cm.rmcon(e,tp,eg,ep,ev,re,r,rp)
local sp=cm.GetNorthPlayer(e:GetHandler(),tp)
......
local m=53799215
local cm=_G["c"..m]
cm.name="怪物YUH"
if not pcall(function() require("expansions/script/c53702500") end) then require("script/c53702500") end
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EFFECT_SEND_REPLACE)
e1:SetTarget(cm.rtg)
e1:SetValue(function(e,c)return false end)
c:RegisterEffect(e1,true)
end
function cm.rtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local tp=c:GetControler()
local res=c:GetOwner()==tp and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and Duel.IsExistingMatchingCard(SNNM.SetDirectlyf,tp,0,LOCATION_ONFIELD,1,nil)
if chk==0 then return res end
if res then
Duel.Hint(HINT_CARD,0,m)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,SNNM.SetDirectlyf,tp,0,LOCATION_ONFIELD,1,1,nil)
SNNM.SetDirectly(g,e,tp)
return true
else return false end
end
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