Commit 41052761 authored by Tachibana's avatar Tachibana

ndyd

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