Commit 64d4241d authored by Tachibana's avatar Tachibana

tnndx

parent 95567d56
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) ...@@ -31,22 +31,14 @@ function cm.initial_effect(c)
e4:SetOperation(cm.actop) e4:SetOperation(cm.actop)
e4:SetLabelObject(e2) e4:SetLabelObject(e2)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--skip
local e11=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD)
e11:SetRange(LOCATION_MZONE) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e11:SetCode(EVENT_MOVE) e2:SetRange(LOCATION_MZONE)
e11:SetOperation(cm.op) e2:SetTargetRange(1,1)
c:RegisterEffect(e1) e2:SetCode(EFFECT_SKIP_M1)
local e12=e11:Clone() c:RegisterEffect(e2)
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)
--special summon --special summon
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(m,0)) e0:SetDescription(aux.Stringid(m,0))
......
...@@ -40,7 +40,7 @@ function cm.initial_effect(c) ...@@ -40,7 +40,7 @@ function cm.initial_effect(c)
end end
function cm.aclimit(e,re,tp) function cm.aclimit(e,re,tp)
local rc=re:GetHandler() 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 end
--e3 --e3
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp) 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) ...@@ -66,7 +66,7 @@ function cm.remop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
local zg=c:GetOverlayGroup():Filter(Card.IsAttribute,nil,ATTRIBUTE_FIRE) local zg=c:GetOverlayGroup():Filter(Card.IsAttribute,nil,ATTRIBUTE_FIRE)
local tg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,nil,tp) 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 if Duel.SelectYesNo(tp,aux.Stringid(16107106,0)) then
local tc=tg:Select(tp,1,1,nil):GetFirst() local tc=tg:Select(tp,1,1,nil):GetFirst()
if not Duel.Equip(tp,tc,c) then return end if not Duel.Equip(tp,tc,c) then return end
......
...@@ -38,19 +38,6 @@ function cm.initial_effect(c) ...@@ -38,19 +38,6 @@ function cm.initial_effect(c)
local e6=e4:Clone() local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e6:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
c:RegisterEffect(e6) 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 end
function cm.econ(e) function cm.econ(e)
return Duel.GetCurrentPhase()==PHASE_MAIN1 return Duel.GetCurrentPhase()==PHASE_MAIN1
...@@ -79,7 +66,7 @@ function cm.remop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +66,7 @@ function cm.remop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
local zg=c:GetOverlayGroup():Filter(Card.IsAttribute,nil,ATTRIBUTE_WIND) local zg=c:GetOverlayGroup():Filter(Card.IsAttribute,nil,ATTRIBUTE_WIND)
local tg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,nil,tp) 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 if Duel.SelectYesNo(tp,aux.Stringid(16107106,0)) then
local tc=tg:Select(tp,1,1,nil):GetFirst() local tc=tg:Select(tp,1,1,nil):GetFirst()
if not Duel.Equip(tp,tc,c) then return end 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) ...@@ -69,7 +69,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local mg=c:GetOverlayGroup() local mg=c:GetOverlayGroup()
local res=mg:IsExists(Card.IsAttribute,1,nil,ATTRIBUTE_EARTH) local res=mg:IsExists(Card.IsAttribute,1,nil,ATTRIBUTE_EARTH)
local tg=Duel.GetMatchingGroup(cm.eqfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,nil,tp) 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 if Duel.SelectYesNo(tp,aux.Stringid(16107106,0)) then
local tc=tg:Select(tp,1,1,nil):GetFirst() local tc=tg:Select(tp,1,1,nil):GetFirst()
if not Duel.Equip(tp,tc,c) then return end if not Duel.Equip(tp,tc,c) then return end
......
...@@ -24,6 +24,7 @@ function cm.initial_effect(c) ...@@ -24,6 +24,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetRange(LOCATION_SZONE)
e3:SetTarget(cm.target) e3:SetTarget(cm.target)
e3:SetOperation(cm.activate) e3:SetOperation(cm.activate)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -19,7 +19,6 @@ function cm.initial_effect(c) ...@@ -19,7 +19,6 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(aux.exccon)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(cm.thtg) e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop) e2:SetOperation(cm.thop)
......
...@@ -46,7 +46,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,7 +46,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true return true
end end
end end
if flag==0 then if flag==1 then
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
c:CreateEffectRelation(e) c:CreateEffectRelation(e)
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