Commit 64d4241d authored by Tachibana's avatar Tachibana

tnndx

parent 95567d56
Pipeline #2912 passed with stages
in 26 minutes and 58 seconds
expansions/pics/16101080.jpg

124 KB | W: | H:

expansions/pics/16101080.jpg

114 KB | W: | H:

expansions/pics/16101080.jpg
expansions/pics/16101080.jpg
expansions/pics/16101080.jpg
expansions/pics/16101080.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -31,22 +31,14 @@ function cm.initial_effect(c)
e4:SetOperation(cm.actop)
e4:SetLabelObject(e2)
c:RegisterEffect(e4)
local e11=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e11:SetRange(LOCATION_MZONE)
e11:SetCode(EVENT_MOVE)
e11:SetOperation(cm.op)
c:RegisterEffect(e1)
local e12=e11:Clone()
e12:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e12)
local e13=e11:Clone()
e13:SetCode(EVENT_SUMMON_SUCCESS)
c:RegisterEffect(e13)
local e14=e11:Clone()
e14:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e14)
--skip
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,1)
e2:SetCode(EFFECT_SKIP_M1)
c:RegisterEffect(e2)
--special summon
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(m,0))
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end
function cm.aclimit(e,re,tp)
local rc=re:GetHandler()
return (rc:IsStatus(STATUS_BATTLE_DESTROYED) or rc:IsComplexReason(REASON_DESTROY,true,REASON_EFFECT,REASON_BATTLE)) and not rc:IsControler(tp)
return (rc:IsStatus(STATUS_BATTLE_DESTROYED) or rc:IsComplexReason(REASON_DESTROY,true,REASON_EFFECT,REASON_BATTLE)) and not rc:IsControler(e:GetHandlerPlayer())
end
--e3
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp)
......@@ -66,7 +66,7 @@ function cm.remop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(g,REASON_EFFECT)
local zg=c:GetOverlayGroup():Filter(Card.IsAttribute,nil,ATTRIBUTE_FIRE)
local tg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,nil,tp)
if #zg>0 and #tg>0 then
if #zg>0 and #tg>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
if Duel.SelectYesNo(tp,aux.Stringid(16107106,0)) then
local tc=tg:Select(tp,1,1,nil):GetFirst()
if not Duel.Equip(tp,tc,c) then return end
......
......@@ -38,19 +38,6 @@ function cm.initial_effect(c)
local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
c:RegisterEffect(e6)
--cannot be target
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetRange(LOCATION_MZONE)
e5:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e5:SetTargetRange(LOCATION_ONFIELD,0)
e5:SetCondition(cm.econ)
e5:SetValue(aux.tgoval)
c:RegisterEffect(e5)
local e7=e5:Clone()
e7:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
c:RegisterEffect(e7)
end
function cm.econ(e)
return Duel.GetCurrentPhase()==PHASE_MAIN1
......@@ -79,7 +66,7 @@ function cm.remop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
local zg=c:GetOverlayGroup():Filter(Card.IsAttribute,nil,ATTRIBUTE_WIND)
local tg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,nil,tp)
if #zg>0 and #tg>0 then
if #zg>0 and #tg>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
if Duel.SelectYesNo(tp,aux.Stringid(16107106,0)) then
local tc=tg:Select(tp,1,1,nil):GetFirst()
if not Duel.Equip(tp,tc,c) then return end
......
......@@ -69,7 +69,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local mg=c:GetOverlayGroup()
local res=mg:IsExists(Card.IsAttribute,1,nil,ATTRIBUTE_EARTH)
local tg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,nil,tp)
if res and #tg>0 then
if res and #tg>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
if Duel.SelectYesNo(tp,aux.Stringid(16107106,0)) then
local tc=tg:Select(tp,1,1,nil):GetFirst()
if not Duel.Equip(tp,tc,c) then return end
......
......@@ -24,6 +24,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetRange(LOCATION_SZONE)
e3:SetTarget(cm.target)
e3:SetOperation(cm.activate)
c:RegisterEffect(e3)
......
......@@ -19,7 +19,6 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(aux.exccon)
e2:SetCost(aux.bfgcost)
e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop)
......
......@@ -39,14 +39,14 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local flag=0
if chk==0 then
if c:IsLocation(LOCATION_GRAVE) and Duel.GetMatchingGroupCount(cm.gravefilter,tp,LOCATION_MZONE,0,nil)>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
if c:IsLocation(LOCATION_GRAVE) and Duel.GetMatchingGroupCount(cm.gravefilter,tp,LOCATION_MZONE,0,nil)>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
flag=1
return true
else
return true
end
end
if flag==0 then
if flag==1 then
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
c:CreateEffectRelation(e)
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