Commit 144edb64 authored by 花桃白音's avatar 花桃白音

fix 4270003 miko of wolf quickeffect condition

parent e36d5db8
...@@ -7,7 +7,7 @@ function c4270003.initial_effect(c) ...@@ -7,7 +7,7 @@ function c4270003.initial_effect(c)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,4270005) e1:SetCountLimit(1,4270005)
e1:SetCost(c4270003.cost) e1:SetCost(c4270003.cost)
e1:SetCondition(c4270003.condition0) e1:SetCondition(c4270003.condition1)
e1:SetTarget(c4270003.target) e1:SetTarget(c4270003.target)
e1:SetOperation(c4270003.operation) e1:SetOperation(c4270003.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -15,7 +15,7 @@ function c4270003.initial_effect(c) ...@@ -15,7 +15,7 @@ function c4270003.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCondition(c4270003.condition1) e2:SetCondition(c4270003.condition0)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
...@@ -31,10 +31,10 @@ function c4270003.filter(c,tp) ...@@ -31,10 +31,10 @@ function c4270003.filter(c,tp)
return c:IsCode(4270009) and c:IsFaceup() return c:IsCode(4270009) and c:IsFaceup()
end end
function c4270003.condition0(e,tp,eg,ep,ev,re,r,rp) function c4270003.condition0(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingTarget(c4270003.filter,tp,LOCATION_REMOVED,0,1,nil) return Duel.IsExistingMatchingCard(c4270003.filter,tp,LOCATION_REMOVED,0,1,nil)
end end
function c4270003.condition1(e,tp,eg,ep,ev,re,r,rp) function c4270003.condition1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingTarget(c4270003.filter,tp,LOCATION_REMOVED,0,1,nil) return not Duel.IsExistingMatchingCard(c4270003.filter,tp,LOCATION_REMOVED,0,1,nil)
end end
function c4270003.cfilter(c,tp) function c4270003.cfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
......
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