Commit dbea01ef authored by TanakaKotoha's avatar TanakaKotoha

888

parent 4030b8b0
......@@ -13,7 +13,7 @@ function c16400034.cfilter(c)
return not c:IsAbleToGraveAsCost()
end
function c16400034.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,LOCATION_SZONE,0)
local g=Duel.GetFieldGroup(1-tp,LOCATION_SZONE,0)
g:RemoveCard(e:GetHandler())
if chk==0 then return g:GetCount()>0 and not g:IsExists(c16400034.cfilter,1,nil) end
Duel.SendtoGrave(g,REASON_COST)
......@@ -24,7 +24,7 @@ function c16400034.activate(e,tp,eg,ep,ev,re,r,rp)
e0:SetCode(EFFECT_CHANGE_DAMAGE)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e0:SetTargetRange(0,1)
e0:SetValue(HALF_DAMAGE)
e0:SetValue(1)
e0:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e0,tp)
end
......@@ -38,9 +38,6 @@ function c16400046.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(val+1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE_FINAL)
c:RegisterEffect(e2)
end
end
function c16400046.xyzfilter(c)
......
......@@ -25,7 +25,7 @@ function cm.cfilter(c)
return not c:IsAbleToRemoveAsCost()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,LOCATION_FZONE,0)
local g=Duel.GetFieldGroup(tp,LOCATION_FZONE,LOCATION_FZONE)
g:RemoveCard(e:GetHandler())
if chk==0 then return g:GetCount()>0 and not g:IsExists(cm.cfilter,1,nil) end
Duel.Remove(g,POS_FACEUP,REASON_COST)
......@@ -69,7 +69,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_CANNOT_DRAW)
e2:SetReset(RESET_PHASE+PHASE_END)
e2:SetTargetRange(0,1)
Duel.RegisterEffect(e2,tp)
Duel.RegisterEffect(e2,tp)
end
function cm.thtarget()
return true
......
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