Commit d1e46752 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 7cf5a415
...@@ -62,30 +62,36 @@ function c29065502.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,30 +62,36 @@ function c29065502.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c29065502.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c29065502.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and (Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) or Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT)) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and (Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) or Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) or Duel.IsPlayerAffectedByEffect(tp,29065592)) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c29065502.spop(e,tp,eg,ep,ev,re,r,rp) function c29065502.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local cs=0
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if not Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) or Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) then return end if not Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) or Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) or Duel.IsPlayerAffectedByEffect(tp,29065592) then return end
local pd1=Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) if Duel.IsPlayerAffectedByEffect(tp,29065592) and Duel.SelectYesNo(tp,aux.Stringid(29065592,0) then
local pd2=Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) cs=1
if pd1 and pd2 then
op=Duel.SelectOption(tp,aux.Stringid(29065501,3),aux.Stringid(29065501,4))
else if pd1 then op=0
else op=1
end
if op==0 then
local g=Duel.GetMatchingGroup(Card.IsAbleToDeckAsCost,tp,LOCATION_ONFIELD,0,nil)
if g:GetCount()<2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g1=g:SelectSubGroup(tp,c29065502.check,false,2,2)
Duel.SendtoDeck(g1,nil,2,REASON_EFFECT)
else
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT)
end end
if cs==0 then
local pd1=Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil)
local pd2=Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT)
if pd1 and pd2 then
op=Duel.SelectOption(tp,aux.Stringid(29065501,3),aux.Stringid(29065501,4))
else if pd1 then op=0
else op=1
end
if op==0 then
local g=Duel.GetMatchingGroup(Card.IsAbleToDeckAsCost,tp,LOCATION_ONFIELD,0,nil)
if g:GetCount()<2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g1=g:SelectSubGroup(tp,c29065502.check,false,2,2)
Duel.SendtoDeck(g1,nil,2,REASON_EFFECT)
else
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT)
end
end
end end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
...@@ -134,7 +140,7 @@ function c29065502.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -134,7 +140,7 @@ function c29065502.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tg=g:Filter(Card.IsRelateToEffect,nil,e) local tg=g:Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()>0 then if tg:GetCount()>0 then
Duel.Destroy(tg,REASON_EFFECT) Duel.Destroy(tg,REASON_EFFECT)
end end
end end
......
...@@ -80,6 +80,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,6 +80,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_SET_ATTACK) e3:SetCode(EFFECT_SET_ATTACK)
e3:SetValue(4000) e3:SetValue(4000)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD) e3:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end 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