Commit b165083b authored by VanillaSalt's avatar VanillaSalt

Merge pull request #999 from DailyShana/patch-7

fix
parents 33befb0b a16fa320
......@@ -84,6 +84,9 @@ function c20426907.distg3(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,g:GetCount(),0,0)
end
function c20426907.disop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(c20426907.sdfilter,tp,LOCATION_ONFIELD,0,1,nil) then
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
if e:GetLabel()==0 or not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local tc=g:GetFirst()
......
......@@ -5,8 +5,11 @@ function c494922.initial_effect(c)
c:EnableReviveLimit()
--defence attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DEFENCE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(c494922.atktg)
e1:SetValue(1)
c:RegisterEffect(e1)
--set
......@@ -22,6 +25,9 @@ function c494922.initial_effect(c)
e2:SetOperation(c494922.setop)
c:RegisterEffect(e2)
end
function c494922.atktg(e,c)
return c:IsSetCard(0x9a)
end
function c494922.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
......
--星輝士 セイクリッド・ダイヤ
function c9272381.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),5),3,c9272381.ovfilter,aux.Stringid(9272381,0))
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT),5),3,c9272381.ovfilter,aux.Stringid(9272381,0),5)
c:EnableReviveLimit()
--
local e1=Effect.CreateEffect(c)
......
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