Commit 22a8a0ad authored by wind2009's avatar wind2009

Merge branch 'patch-8' into 'master'

Fix 真魔六武衆-キザン

See merge request mycard/pre-release-database-cdb!166
parents 167d28aa 53750083
Pipeline #32537 failed with stages
in 2 minutes and 21 seconds
--真魔六武众-辉斩 --真魔六武衆-キザン
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--Synchro summon --Synchro summon
...@@ -7,38 +7,41 @@ function s.initial_effect(c) ...@@ -7,38 +7,41 @@ function s.initial_effect(c)
--atk up --atk up
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_LEVEL) e1:SetRange(LOCATION_MZONE)
e1:SetRange(LOCATION_FZONE) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3d)) e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3d))
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(600) e1:SetValue(600)
e1:SetCondition(s.atkcon) e1:SetCondition(s.atkcon)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--destroy local e2=e1:Clone()
local e2=Effect.CreateEffect(c) e2:SetCode(EFFECT_UPDATE_DEFENSE)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,id)
e2:SetCondition(s.descon)
e2:SetCost(s.descost)
e2:SetTarget(s.destg)
e2:SetOperation(s.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--special summon --destroy
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,2)) e3:SetDescription(aux.Stringid(id,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetRange(LOCATION_GRAVE) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetCountLimit(1,id+o) e3:SetRange(LOCATION_MZONE)
e3:SetCondition(s.spcon) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetTarget(s.sptg) e3:SetCountLimit(1,id)
e3:SetOperation(s.spop) e3:SetCondition(s.descon)
e3:SetCost(s.descost)
e3:SetTarget(s.destg)
e3:SetOperation(s.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--special summon
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,2))
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_GRAVE)
e4:SetCountLimit(1,id+o)
e4:SetCondition(s.spcon)
e4:SetTarget(s.sptg)
e4:SetOperation(s.spop)
c:RegisterEffect(e4)
end end
function s.atkcon(e) function s.atkcon(e)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
...@@ -81,7 +84,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -81,7 +84,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and aux.NecroValleyFilter()(c) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
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