Commit 15f994f7 authored by Tachibana's avatar Tachibana

watele

parent 03582a34
Pipeline #6682 failed with stages
in 27 minutes and 11 seconds
...@@ -5,64 +5,57 @@ function c9310029.initial_effect(c) ...@@ -5,64 +5,57 @@ function c9310029.initial_effect(c)
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
--spirit return --spirit return
aux.EnableSpiritReturn(c,EVENT_SPSUMMON_SUCCESS) aux.EnableSpiritReturn(c,EVENT_SPSUMMON_SUCCESS)
--battle indes --nontuner
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_NONTUNER)
e1:SetValue(1) e1:SetValue(c9310029.tnval)
e1:SetCondition(c9310029.indcon)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() --flip
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(9310029,2))
e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,9310029)
e2:SetTarget(c9310029.rmtg)
e2:SetOperation(c9310029.rmop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e1:Clone() --equip
e3:SetCode(EFFECT_NONTUNER) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(9310029,0))
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCategory(CATEGORY_EQUIP)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetTarget(c9310029.eqtg)
e3:SetOperation(c9310029.eqop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--flip --unequip
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(9310029,2)) e4:SetDescription(aux.Stringid(9310029,1))
e4:SetCategory(CATEGORY_REMOVE) e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetRange(LOCATION_SZONE)
e4:SetCountLimit(1,9310029) e4:SetTarget(c9310029.sptg)
e4:SetTarget(c9310029.rmtg) e4:SetOperation(c9310029.spop)
e4:SetOperation(c9310029.rmop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--equip --equip-P
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(9310029,0)) e5:SetDescription(aux.Stringid(9310029,0))
e5:SetProperty(EFFECT_FLAG_CARD_TARGET)
e5:SetCategory(CATEGORY_EQUIP) e5:SetCategory(CATEGORY_EQUIP)
e5:SetType(EFFECT_TYPE_IGNITION) e5:SetType(EFFECT_TYPE_QUICK_O)
e5:SetRange(LOCATION_MZONE) e5:SetCode(EVENT_FREE_CHAIN)
e5:SetTarget(c9310029.eqtg) e5:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET)
e5:SetOperation(c9310029.eqop) e5:SetRange(LOCATION_PZONE)
e5:SetCountLimit(1)
e5:SetTarget(c9310029.eqtg2)
e5:SetOperation(c9310029.eqop2)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--unequip
local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(9310029,1))
e6:SetCategory(CATEGORY_SPECIAL_SUMMON)
e6:SetType(EFFECT_TYPE_IGNITION)
e6:SetRange(LOCATION_SZONE)
e6:SetTarget(c9310029.sptg)
e6:SetOperation(c9310029.spop)
c:RegisterEffect(e6)
--equip-P
local e7=Effect.CreateEffect(c)
e7:SetDescription(aux.Stringid(9310029,0))
e7:SetCategory(CATEGORY_EQUIP)
e7:SetType(EFFECT_TYPE_QUICK_O)
e7:SetCode(EVENT_FREE_CHAIN)
e7:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET)
e7:SetRange(LOCATION_PZONE)
e7:SetCountLimit(1)
e7:SetTarget(c9310029.eqtg2)
e7:SetOperation(c9310029.eqop2)
c:RegisterEffect(e7)
end end
function c9310029.indcon(e) function c9310029.tnval(e,c)
return e:GetHandler():IsDefensePos() return e:GetHandler():IsDefensePos()
end end
function c9310029.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c9310029.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -26,7 +26,7 @@ function c9310052.initial_effect(c) ...@@ -26,7 +26,7 @@ function c9310052.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_NONTUNER) e3:SetCode(EFFECT_NONTUNER)
e3:SetValue(1) e3:SetValue(c9310052.tnval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--inactivatable --inactivatable
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -104,6 +104,9 @@ function c9310052.sprop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -104,6 +104,9 @@ function c9310052.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Card.SetMaterial(c,sg) Card.SetMaterial(c,sg)
Duel.SendtoGrave(sg,REASON_COST+REASON_MATERIAL) Duel.SendtoGrave(sg,REASON_COST+REASON_MATERIAL)
end end
function c9310052.tnval(e,c)
return e:GetHandler():IsDefensePos()
end
function c9310052.efilter(e,ct) function c9310052.efilter(e,ct)
local p=e:GetHandlerPlayer() local p=e:GetHandlerPlayer()
local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER) local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
......
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