Commit d1e46752 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 7cf5a415
...@@ -62,13 +62,18 @@ function c29065502.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,13 +62,18 @@ 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
if Duel.IsPlayerAffectedByEffect(tp,29065592) and Duel.SelectYesNo(tp,aux.Stringid(29065592,0) then
cs=1
end
if cs==0 then
local pd1=Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil) local pd1=Duel.IsExistingMatchingCard(c29065502.cfilter,tp,LOCATION_MZONE,0,1,nil)
local pd2=Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) local pd2=Duel.IsCanRemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT)
if pd1 and pd2 then if pd1 and pd2 then
...@@ -87,6 +92,7 @@ function c29065502.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,6 +92,7 @@ function c29065502.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT) Duel.RemoveCounter(tp,1,0,0x87ae,6,REASON_EFFECT)
end 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
......
...@@ -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