Commit a770cafc authored by Nemo Ma's avatar Nemo Ma

fix

parent a073acd2
...@@ -27,7 +27,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,7 +27,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function cm.thfilter(c,tp) function cm.thfilter(c,tp)
return c:IsSetCard(0x6410) and c:IsType(TYPE_CONTINUOUS+TYPE_FIELD) return c:IsSetCard(0x9da0) and c:IsType(TYPE_CONTINUOUS+TYPE_FIELD)
and c:GetActivateEffect():IsActivatable(tp) and c:GetActivateEffect():IsActivatable(tp)
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -69,10 +69,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,10 +69,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.filter1(c) function cm.filter1(c)
return c:IsSetCard(0x6410) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x9da0) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.filter2(c,e,tp) function cm.filter2(c,e,tp)
return c:IsSetCard(0x6410) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9da0) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.filter3(c) function cm.filter3(c)
return c:IsSummonable(true,nil,1) or c:IsMSetable(true,nil,1) return c:IsSummonable(true,nil,1) or c:IsMSetable(true,nil,1)
......
...@@ -30,7 +30,7 @@ function cm.initial_effect(c) ...@@ -30,7 +30,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.filter(c) function cm.filter(c)
return c:IsSetCard(0x6410) and (((c:IsType(TYPE_FIELD) or c:IsType(TYPE_CONTINUOUS)) and not c:IsForbidden() and Duel.GetLocationCount(tp,LOCATION_SZONE)>0) or ((c:IsType(TYPE_QUICKPLAY) or c:GetType()==TYPE_SPELL or c:GetType()==TYPE_TRAP) and c:CheckActivateEffect(false,true,false)~=nil )) return c:IsSetCard(0x9da0) and (((c:IsType(TYPE_FIELD) or c:IsType(TYPE_CONTINUOUS)) and not c:IsForbidden() and Duel.GetLocationCount(tp,LOCATION_SZONE)>0) or ((c:IsType(TYPE_QUICKPLAY) or c:GetType()==TYPE_SPELL or c:GetType()==TYPE_TRAP) and c:CheckActivateEffect(false,true,false)~=nil ))
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then if chkc then
...@@ -76,7 +76,7 @@ end ...@@ -76,7 +76,7 @@ end
end end
function cm.atkfilter(c) function cm.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x6410) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsSetCard(0x9da0) and c:IsType(TYPE_MONSTER)
end end
function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.atkfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.atkfilter,tp,LOCATION_MZONE,0,1,nil) end
......
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