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) ...@@ -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) Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,g:GetCount(),0,0)
end end
function c20426907.disop(e,tp,eg,ep,ev,re,r,rp) 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 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 g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -5,8 +5,11 @@ function c494922.initial_effect(c) ...@@ -5,8 +5,11 @@ function c494922.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--defence attack --defence attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DEFENCE_ATTACK) e1:SetCode(EFFECT_DEFENCE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(c494922.atktg)
e1:SetValue(1) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--set --set
...@@ -22,6 +25,9 @@ function c494922.initial_effect(c) ...@@ -22,6 +25,9 @@ function c494922.initial_effect(c)
e2:SetOperation(c494922.setop) e2:SetOperation(c494922.setop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c494922.atktg(e,c)
return c:IsSetCard(0x9a)
end
function c494922.filter(c) function c494922.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
......
--星輝士 セイクリッド・ダイヤ --星輝士 セイクリッド・ダイヤ
function c9272381.initial_effect(c) function c9272381.initial_effect(c)
--xyz summon --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() c:EnableReviveLimit()
-- --
local e1=Effect.CreateEffect(c) 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