Commit 7234dc41 authored by Nemo Ma's avatar Nemo Ma Committed by GitHub

Merge pull request #9 from Sonic714/master

6.11 yume fix
parents 9f2b09b4 6eea35a5
...@@ -29,7 +29,6 @@ function c71400011.initial_effect(c) ...@@ -29,7 +29,6 @@ function c71400011.initial_effect(c)
e2:SetCost(c71400011.cost) e2:SetCost(c71400011.cost)
e2:SetTarget(c71400011.tg2) e2:SetTarget(c71400011.tg2)
e2:SetOperation(c71400011.op2) e2:SetOperation(c71400011.op2)
e2:SetCondition(c71400011.con2)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--fly away --fly away
...@@ -69,9 +68,6 @@ function c71400011.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,9 +68,6 @@ function c71400011.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c71400011.con2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN)
end
function c71400011.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c71400011.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
......
...@@ -20,8 +20,8 @@ function c71400014.initial_effect(c) ...@@ -20,8 +20,8 @@ function c71400014.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(71400014,1)) e2:SetDescription(aux.Stringid(71400014,1))
e2:SetCategory(CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCost(c71400014.cost2) e2:SetCost(c71400014.cost2)
......
...@@ -12,6 +12,7 @@ function c71400016.initial_effect(c) ...@@ -12,6 +12,7 @@ function c71400016.initial_effect(c)
e1:SetCategory(CATEGORY_SUMMON) e1:SetCategory(CATEGORY_SUMMON)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_FZONE) e1:SetRange(LOCATION_FZONE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c71400016.con1) e1:SetCondition(c71400016.con1)
e1:SetTarget(c71400016.tg1) e1:SetTarget(c71400016.tg1)
...@@ -90,7 +91,7 @@ function c71400016.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,7 +91,7 @@ function c71400016.checkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetLabel(1) e2:SetLabel(1)
end end
function c71400016.reccon(e,tp,eg,ep,ev,re,r,rp) function c71400016.reccon(e,tp,eg,ep,ev,re,r,rp)
return e:GetLabel()==1 and c:IsPreviousLocation(LOCATION_MZONE) return e:GetLabel()==1 and e:GetHandler():IsPreviousLocation(LOCATION_MZONE)
end end
function c71400016.recop(e,tp,eg,ep,ev,re,r,rp) function c71400016.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(tp,e:GetLabelObject():GetBaseAttack(),REASON_EFFECT) Duel.Recover(tp,e:GetLabelObject():GetBaseAttack(),REASON_EFFECT)
......
...@@ -56,7 +56,7 @@ function c71400025.cost2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -56,7 +56,7 @@ function c71400025.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c71400025.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c71400025.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not (c:IsType(TYPE_LINK)) and c:IsLocation(LOCATION_EXTRA) return not (c:IsType(TYPE_LINK) and c:IsSetCard(0x714)) and c:IsLocation(LOCATION_EXTRA)
end end
function c71400025.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71400025.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsType(TYPE_LINK) and chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsType(TYPE_LINK) and chkc:IsLocation(LOCATION_MZONE) end
......
...@@ -9,6 +9,7 @@ function c71400032.initial_effect(c) ...@@ -9,6 +9,7 @@ function c71400032.initial_effect(c)
e1:SetRange(LOCATION_FZONE) e1:SetRange(LOCATION_FZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetCode(EFFECT_CHANGE_RACE) e1:SetCode(EFFECT_CHANGE_RACE)
e1:SetTarget(c71400032.tg1)
e1:SetValue(RACE_PLANT) e1:SetValue(RACE_PLANT)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--disable --disable
...@@ -27,9 +28,12 @@ function c71400032.initial_effect(c) ...@@ -27,9 +28,12 @@ function c71400032.initial_effect(c)
--self to deck & activate field --self to deck & activate field
yume.AddYumeFieldGlobal(c,71400032,2) yume.AddYumeFieldGlobal(c,71400032,2)
end end
function c71400032.tg1(e,c)
return not c71400032.filter2b(c)
end
function c71400032.con2(e,tp,eg,ep,ev,re,r,rp) function c71400032.con2(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return ph==PHASE_MAIN1 or ph==PHASE_MAIN2 return Duel.IsExistingMatchingCard(c71400032.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,4,nil) and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)
end end
function c71400032.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71400032.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c71400032.filter2(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c71400032.filter2(chkc) end
......
...@@ -42,7 +42,7 @@ function c71400033.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c71400033.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,Duel.GetLP(tp)-1500) Duel.SetLP(tp,Duel.GetLP(tp)-1500)
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
if fc and yume.YumeCheckFilter(fc) then if fc and yume.YumeCheckFilter(fc) then
Duel.SendtoDeck(c,nil,2,REASON_EFFECT) Duel.SendtoDeck(fc,nil,2,REASON_EFFECT)
end end
end end
if c:IsRelateToEffect(e) and c:IsCanTurnSet() then if c:IsRelateToEffect(e) and c:IsCanTurnSet() then
......
...@@ -20,7 +20,7 @@ function c71400036.initial_effect(c) ...@@ -20,7 +20,7 @@ function c71400036.initial_effect(c)
e2:SetCountLimit(1,71500036) e2:SetCountLimit(1,71500036)
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_MOVE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCondition(c71400036.con2) e2:SetCondition(c71400036.con2)
e2:SetTarget(c71400036.tg2) e2:SetTarget(c71400036.tg2)
......
...@@ -86,6 +86,7 @@ function c71400043.tg2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -86,6 +86,7 @@ function c71400043.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if fc and fc:IsFaceup() then id=fc:GetCode() end if fc and fc:IsFaceup() then id=fc:GetCode() end
return yume.YumeFieldCheck(tp,id,2,LOCATION_GRAVE+LOCATION_DECK) return yume.YumeFieldCheck(tp,id,2,LOCATION_GRAVE+LOCATION_DECK)
end end
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
end end
function c71400043.op2(e,tp,eg,ep,ev,re,r,rp) function c71400043.op2(e,tp,eg,ep,ev,re,r,rp)
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
......
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