Commit 554bfbdc authored by Nemo Ma's avatar Nemo Ma

fix

parent b78a362f
...@@ -31,7 +31,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetTargetRange(0,1) e1:SetTargetRange(0,1)
e1:SetValue(cm.damval) e1:SetValue(cm.damval)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
else op==2 then elseif op==2 then
Duel.Draw(tp,3,REASON_EFFECT) Duel.Draw(tp,3,REASON_EFFECT)
end end
end end
......
...@@ -15,7 +15,7 @@ function cm.initial_effect(c) ...@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.condition) e2:SetOperation(cm.condition)
e2:SetOperation(cm.operation) e2:SetOperation(cm.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(e:GetHandler()) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EFFECT_DESTROY_REPLACE) e3:SetCode(EFFECT_DESTROY_REPLACE)
e3:SetTarget(cm.reptg) e3:SetTarget(cm.reptg)
......
...@@ -25,6 +25,7 @@ function c60159904.initial_effect(c) ...@@ -25,6 +25,7 @@ function c60159904.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(c60159904.atkcost) e3:SetCost(c60159904.atkcost)
e3:SetTarget(c60159904.ctarget) e3:SetTarget(c60159904.ctarget)
e3:SetOperation(c60159904.cactivate) e3:SetOperation(c60159904.cactivate)
...@@ -77,7 +78,7 @@ function c60159904.operation2(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +78,7 @@ function c60159904.operation2(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c60159904.cfilter(c) function c60159904.cfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_DRAGON) and c:IsAbleToRemoveAsCost() return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_AQUA) and c:IsAbleToRemoveAsCost()
end end
function c60159904.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c60159904.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60159904.cfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c60159904.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -248,7 +248,7 @@ function cm.xcon(e) ...@@ -248,7 +248,7 @@ function cm.xcon(e)
end end
end end
function cm.imfilter(c,e) function cm.imfilter(c,e)
return not c:IsImmuneToEffect(e) return not c:IsImmuneToEffect(e) and not c:IsType(TYPE_TOKEN)
end end
function cm.filter(c,tp) function cm.filter(c,tp)
return aux.GetColumn(c,tp)==1 return aux.GetColumn(c,tp)==1
...@@ -325,7 +325,7 @@ function cm.xop(e) ...@@ -325,7 +325,7 @@ function cm.xop(e)
end end
sg:RemoveCard(c) sg:RemoveCard(c)
for tc in aux.Next(sg) do for tc in aux.Next(sg) do
if tc:IsCanOverlay() and not tc:IsImmuneToEffect(e) then if tc:IsCanOverlay() and not tc:IsImmuneToEffect(e) and not c:IsType(TYPE_TOKEN) then
local sg=tc:GetOverlayGroup() local sg=tc:GetOverlayGroup()
if sg then if sg then
Duel.SendtoGrave(sg,REASON_RULE) Duel.SendtoGrave(sg,REASON_RULE)
......
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