Commit 30ab2f76 authored by GuGu's avatar GuGu

Update c4114224.lua

parent ed0ab490
Pipeline #33528 passed with stage
in 18 seconds
...@@ -56,7 +56,7 @@ function c4114224.costfilter1(c) ...@@ -56,7 +56,7 @@ function c4114224.costfilter1(c)
return c:IsSetCard(0x6141) and c:IsFaceup() and c:IsAbleToGraveAsCost() return c:IsSetCard(0x6141) and c:IsFaceup() and c:IsAbleToGraveAsCost()
end end
function c4114224.costfilter2(c) function c4114224.costfilter2(c)
return c:IsOriginalCodeRule(4114224) and c:IsFaceup() and not c:IsDisabled() and not c:IsForbidden() and c:CheckRemoveOverlayCard(tp,1,REASON_COST) return c:IsOriginalCodeRule(4114224) and c:IsFaceup() and not c:IsDisabled() and not c:IsForbidden() and c:CheckRemoveOverlayCard(tp,1,REASON_ACTION)
end end
function c4114224.costchk(e,c,tp) function c4114224.costchk(e,c,tp)
return Duel.IsExistingMatchingCard(c4114224.costfilter1,tp,LOCATION_SZONE,0,1,nil) and Duel.IsExistingMatchingCard(c4114224.costfilter2,tp,LOCATION_MZONE,0,1,nil) and Duel.IsPlayerAffectedByEffect(tp,4114224) and Duel.GetFlagEffect(tp,4114225)==0 return Duel.IsExistingMatchingCard(c4114224.costfilter1,tp,LOCATION_SZONE,0,1,nil) and Duel.IsExistingMatchingCard(c4114224.costfilter2,tp,LOCATION_MZONE,0,1,nil) and Duel.IsPlayerAffectedByEffect(tp,4114224) and Duel.GetFlagEffect(tp,4114225)==0
...@@ -71,8 +71,8 @@ function c4114224.costop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,8 +71,8 @@ function c4114224.costop(e,tp,eg,ep,ev,re,r,rp)
local g2=Duel.SelectMatchingCard(tp,c4114224.costfilter2,tp,LOCATION_MZONE,0,1,1,nil) local g2=Duel.SelectMatchingCard(tp,c4114224.costfilter2,tp,LOCATION_MZONE,0,1,1,nil)
local tg2=g2:GetFirst() local tg2=g2:GetFirst()
Duel.Hint(HINT_SELECTMSG,0,HINTMSG_REMOVEXYZ) Duel.Hint(HINT_SELECTMSG,0,HINTMSG_REMOVEXYZ)
tg2:RemoveOverlayCard(tp,1,1,REASON_COST) tg2:RemoveOverlayCard(tp,1,1,REASON_ACTION)
Duel.SendtoGrave(g1,REASON_COST) Duel.SendtoGrave(g1,REASON_ACTION)
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,false) Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,false)
end end
function c4114224.extg(e,c) function c4114224.extg(e,c)
......
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