Commit 41052761 authored by Tachibana's avatar Tachibana

ndyd

parent 6f22a221
......@@ -114,7 +114,7 @@ function yume.YumeCheck2(e)
return not yume.IsYumeFieldOnField(e:GetHandler():GetControler())
end
--Yume Condition
function yume.YumeCon(e,tp,eg,ep,ev,re,r,rp)
function yume.YumeCon(e,tp)
if not tp then tp=e:GetHandlerPlayer() end
return yume.IsYumeFieldOnField(tp)
end
......@@ -237,7 +237,7 @@ function yume.SelfToDeckOp(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(c,nil,2,REASON_EFFECT)
end
end
--Field Activation
--activate field
function yume.YumeFieldCheck(tp,id,ft,loc)
ft=ft or 0
id=id or 0
......@@ -247,6 +247,7 @@ end
function yume.YumeFieldCheckTarget(id,ft,loc)
return function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return yume.YumeFieldCheck(tp,id,ft,loc) end
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
end
end
function yume.ActivateYumeField(tp,id,ft,loc)
......
......@@ -25,7 +25,7 @@ function c71400023.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetHintTiming(0,TIMING_SUMMON+TIMING_SPSUMMON+TIMING_END_PHASE)
e2:SetCondition(aux.exccon)
e2:SetCondition(c71400023.con2)
e2:SetCost(aux.bfgcost)
e2:SetTarget(c71400023.tg2)
e2:SetOperation(c71400023.op2)
......@@ -103,6 +103,9 @@ function c71400023.efilter(e,ct)
local tc=te:GetHandler()
return tp==e:GetHandlerPlayer() and tc:IsSetCard(0x3714) and tc:IsType(TYPE_FIELD)
end
function c71400023.con2(e,tp,eg,ep,ev,re,r,rp)
return aux.exccon(e) and yume.YumeCon(e,tp)
end
function c71400023.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsAbleToRemove() end
if chk==0 then return Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_ONFIELD,0,1,nil)
......
......@@ -55,7 +55,7 @@ function c71400026.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c71400026.mixedYumeCon(e,tp,eg,ep,ev,re,r,rp)
return yume.YumeCon(e,tp,eg,ep,ev,re,r,rp) and aux.exccon(e,tp,eg,ep,ev,re,r,rp)
return yume.YumeCon(e,tp) and aux.exccon(e)
end
function c71400026.filter2(c)
return c:IsSetCard(0xe714) and not c:IsCode(71400026) and c:IsAbleToHand()
......
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