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)
e1:SetTargetRange(0,1)
e1:SetValue(cm.damval)
Duel.RegisterEffect(e1,tp)
else op==2 then
elseif op==2 then
Duel.Draw(tp,3,REASON_EFFECT)
end
end
......
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.condition)
e2:SetOperation(cm.operation)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(e:GetHandler())
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EFFECT_DESTROY_REPLACE)
e3:SetTarget(cm.reptg)
......
......@@ -25,6 +25,7 @@ function c60159904.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(c60159904.atkcost)
e3:SetTarget(c60159904.ctarget)
e3:SetOperation(c60159904.cactivate)
......@@ -77,7 +78,7 @@ function c60159904.operation2(e,tp,eg,ep,ev,re,r,rp)
end
end
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
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
......
......@@ -248,7 +248,7 @@ function cm.xcon(e)
end
end
function cm.imfilter(c,e)
return not c:IsImmuneToEffect(e)
return not c:IsImmuneToEffect(e) and not c:IsType(TYPE_TOKEN)
end
function cm.filter(c,tp)
return aux.GetColumn(c,tp)==1
......@@ -325,7 +325,7 @@ function cm.xop(e)
end
sg:RemoveCard(c)
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()
if sg then
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