Commit 9d146322 authored by Nemo Ma's avatar Nemo Ma

fix

parent 463adbeb
...@@ -28,7 +28,7 @@ function cm.filter(c) ...@@ -28,7 +28,7 @@ function cm.filter(c)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=2 local ft=2
if e:GetHandler():IsLocation(LOCATION_SZONE) then ft=1 if e:GetHandler():IsLocation(LOCATION_SZONE) then ft=1 end
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,2,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>ft end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,2,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>ft end
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -10,13 +10,13 @@ function cm.initial_effect(c) ...@@ -10,13 +10,13 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m)
e1:SetTarget(cm.tg) e1:SetTarget(cm.sumtg)
e1:SetOperation(cm.op) e1:SetOperation(cm.sumop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) or c:IsAbleToRemove() or Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) or c:IsAbleToRemove() or Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,LOCATION_ONFIELD) Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,LOCATION_ONFIELD)
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
......
...@@ -36,8 +36,8 @@ function c9910025.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,8 +36,8 @@ function c9910025.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
ct=ct+1 ct=ct+1
end end
if rt>=2 and Duel.IsExistingMatchingCard(c9910025.rpfilter,tp,LOCATION_HAND,0,1,1,nil,tp) then if rt>=2 and Duel.IsExistingMatchingCard(c9910025.rpfilter,tp,LOCATION_HAND,0,1,1,nil,tp)
if not Duel.SelectYesNo(tp,aux.Stringid(9910025,1)) then return end and Duel.SelectYesNo(tp,aux.Stringid(9910025,1)) then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(9910025,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(9910025,0))
local g=Duel.SelectMatchingCard(tp,c9910025.rpfilter,tp,LOCATION_HAND,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,c9910025.rpfilter,tp,LOCATION_HAND,0,1,1,nil,tp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
...@@ -77,7 +77,7 @@ function c9910025.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -77,7 +77,7 @@ function c9910025.target(e,tp,eg,ep,ev,re,r,rp,chk)
b2=false b2=false
end end
ct=ct-1 ct=ct-1
until ct==0 or off<2 until ct==0 or off<3
e:SetLabel(sel) e:SetLabel(sel)
if bit.band(sel,1)~=0 then if bit.band(sel,1)~=0 then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
......
...@@ -71,7 +71,7 @@ function c9980847.sumsuc(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c9980847.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(9980847,8)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(9980847,8))
end end
function c9980847.ffilter(c,fc,sub,mg,sg) function c9980847.ffilter(c,fc,sub,mg,sg)
return c:IsFusionSetCard(0x5bc2) and (not sg or not sg:Filter(Card.IsFusionSetCard,nil,0x5bc2):IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute())) return c:IsType(TYPE_MONSTER) and c:IsFusionSetCard(0x5bc2) and (not sg or not sg:Filter(Card.IsFusionSetCard,nil,0x5bc2):IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute()))
end end
function c9980847.atkfilter(c) function c9980847.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x5bc2) return c:IsFaceup() and c:IsSetCard(0x5bc2)
......
--装甲骑士铠武·极武装 --装甲骑士铠武·极武装
function c9980865.initial_effect(c) function c9980865.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x6bc2),aux.FilterBoolFunction(Card.IsCode,9980865),1,1) aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x6bc2),aux.FilterBoolFunction(Card.IsCode,9980864),1,1)
c:EnableReviveLimit() c:EnableReviveLimit()
--cannot special summon --cannot special summon
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
......
...@@ -18,7 +18,7 @@ function c9980888.initial_effect(c) ...@@ -18,7 +18,7 @@ function c9980888.initial_effect(c)
e2:SetDescription(aux.Stringid(9980888,1)) e2:SetDescription(aux.Stringid(9980888,1))
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE) e2:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,9980888) e2:SetCountLimit(1,9980888)
...@@ -31,7 +31,7 @@ function c9980888.initial_effect(c) ...@@ -31,7 +31,7 @@ function c9980888.initial_effect(c)
e3:SetDescription(aux.Stringid(9980888,1)) e3:SetDescription(aux.Stringid(9980888,1))
e3:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE) e3:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE)
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_SUMMON_SUCCESS) e3:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END) e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e3:SetRange(LOCATION_HAND) e3:SetRange(LOCATION_HAND)
e3:SetCountLimit(1,9980888) e3:SetCountLimit(1,9980888)
......
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