Commit 6a917aba authored by salix5's avatar salix5

fix

30459350 王宮の鉄壁
Changed into the form similar to 97940434 カオスハンター

97940434 カオスハンター
The card name is fixed, and effect code 30459350 is added for the
activation check of cards like 1475311 闇の誘惑.

51858306 エクリプス・ワイバーン
Now this card will simply do nothing instead of show the whole deck when
cards like 30459350 王宮の鉄壁 is on the field.
parent 9476ee54
...@@ -11,9 +11,10 @@ function c30459350.initial_effect(c) ...@@ -11,9 +11,10 @@ function c30459350.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_REMOVE) e2:SetCode(EFFECT_CANNOT_REMOVE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --30459350 chk
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(30459350) e3:SetCode(30459350)
......
...@@ -35,6 +35,7 @@ function c51858306.filter(c) ...@@ -35,6 +35,7 @@ function c51858306.filter(c)
and c:IsAbleToRemove() and c:IsAbleToRemove()
end end
function c51858306.operation(e,tp,eg,ep,ev,re,r,rp) function c51858306.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,30459350) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c51858306.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c51858306.filter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
......
--カオス·ハンター --カオスハンター
function c97940434.initial_effect(c) function c97940434.initial_effect(c)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -20,6 +20,14 @@ function c97940434.initial_effect(c) ...@@ -20,6 +20,14 @@ function c97940434.initial_effect(c)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,1) e2:SetTargetRange(0,1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--30459350 chk
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(30459350)
e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetTargetRange(0,1)
c:RegisterEffect(e3)
end end
function c97940434.spfilter(c,sp) function c97940434.spfilter(c,sp)
return c:GetSummonPlayer()==sp return c:GetSummonPlayer()==sp
......
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