Commit 68acd43a authored by TanakaKotoha's avatar TanakaKotoha

modified: expansions/script/c26807003.lua

modified:   expansions/script/c33400256.lua
modified:   expansions/script/c65010508.lua
modified:   expansions/script/c65010519.lua
modified:   expansions/script/c81012038.lua
parent 2d609f1d
......@@ -3,7 +3,6 @@ c26807003.dfc_front_side=26807002
c26807003.dfc_back_side=26807003
require("expansions/script/c81000000")
function c26807003.initial_effect(c)
Tenka.Reverse(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_WIND),aux.NonTuner(Card.IsAttribute,ATTRIBUTE_WIND),1)
c:EnableReviveLimit()
......@@ -37,6 +36,15 @@ function c26807003.initial_effect(c)
e2:SetTarget(c26807003.target)
e2:SetOperation(c26807003.operation)
c:RegisterEffect(e2)
--back
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e8:SetCode(EVENT_ADJUST)
e8:SetRange(LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_HAND+LOCATION_EXTRA)
e8:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE)
e8:SetCondition(c26807003.backon)
e8:SetOperation(c26807003.backop)
c:RegisterEffect(e8)
end
function c26807003.repfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD) and not c:IsType(TYPE_TOKEN)
......@@ -122,3 +130,13 @@ function c26807003.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
function c26807003.backon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c.dfc_front_side and c:GetOriginalCode()==c.dfc_back_side
end
function c26807003.backop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tcode=c.dfc_front_side
c:SetEntityCode(tcode)
c:ReplaceEffect(tcode,0,0)
end
......@@ -41,11 +41,13 @@ function c33400256.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g4,nil,REASON_EFFECT)
end
if tc:IsCode(ac) then
if Duel.SelectYesNo(tp,aux.Stringid(33400256,0)) and Duel.IsExistingTarget(c33400256.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) then
if Duel.IsExistingTarget(c33400256.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) then
if Duel.SelectYesNo(tp,aux.Stringid(33400256,0)) then
local tc1=Duel.SelectTarget(tp,c33400256.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc2=tc1:GetFirst()
Duel.SpecialSummonStep(tc2,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonComplete()
end
end
if tc:IsSetCard(0x341) and Duel.SelectYesNo(tp,aux.Stringid(33400256,1))then
Duel.SendtoGrave(tc,REASON_EFFECT)
......
......@@ -14,7 +14,7 @@ function c65010508.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
......@@ -28,7 +28,7 @@ end
c65010508.setname="URBEX"
function c65010508.atkcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) and Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
return (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated())
end
function c65010508.atkcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end
......
......@@ -64,14 +64,14 @@ function c65010519.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(gc,0,tp,tp,false,false,POS_FACEUP)
end
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
e1:SetTarget(c65010519.splimit)
Duel.RegisterEffect(e1,tp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetTarget(c65010519.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
end
function c65010519.splimit(e,c)
......
......@@ -81,7 +81,7 @@ function c81012038.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c81012038.condition(e,tp,eg,ep,ev,re,r,rp)
local attr=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_ATTRIBUTE)
local race=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_RACE)
return ep~=tp and re:IsActiveType(TYPE_MONSTER) and race&RACE_PYRO>0 and Duel.IsChainNegatable(ev)
end
function c81012038.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
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