Commit a16fa320 authored by DailyShana's avatar DailyShana

fix

機殻の再星
when this card is activate in response to (special) summon and during
effect operation there is no  Qliphort card on field, this card should
be sent to grave and stop solving the effect that negate (special)
summoned monsters.
parent 75be7a7a
...@@ -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
...@@ -32,7 +38,7 @@ function c494922.setfilter(c,tp) ...@@ -32,7 +38,7 @@ function c494922.setfilter(c,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable(true) and (c:IsType(TYPE_FIELD) or Duel.GetLocationCount(tp,LOCATION_SZONE)>0) return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable(true) and (c:IsType(TYPE_FIELD) or Duel.GetLocationCount(tp,LOCATION_SZONE)>0)
end end
function c494922.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c494922.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_GRAVE) and c494922.setfilter(chkc,tp) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_GRAVE) and c494922.setfilter(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c494922.setfilter,tp,0,LOCATION_GRAVE,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(c494922.setfilter,tp,0,LOCATION_GRAVE,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectTarget(tp,c494922.setfilter,tp,0,LOCATION_GRAVE,1,1,nil,tp) local g=Duel.SelectTarget(tp,c494922.setfilter,tp,0,LOCATION_GRAVE,1,1,nil,tp)
......
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