Commit 0da3b2fd authored by Grajade's avatar Grajade

Update c51562802.lua

parent c28ddd6b
Pipeline #6868 passed with stages
in 28 minutes and 43 seconds
...@@ -25,7 +25,7 @@ function c51562802.initial_effect(c) ...@@ -25,7 +25,7 @@ function c51562802.initial_effect(c)
end end
--ef1 --ef1
function c51562802.tsfilter(c,tc) function c51562802.tsfilter(c,tc)
return c:IsSetCard(0x351a) and c:GetLevel()~=tc:GetLevel() return c:IsSetCard(0x351a) and c:GetLevel()~=tc:GetLevel() and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end end
function c51562802.tstg(e,tp,eg,ep,ev,re,r,rp,chk) function c51562802.tstg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -51,7 +51,7 @@ function c51562802.tsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c51562802.tsop(e,tp,eg,ep,ev,re,r,rp)
end end
--ef2 --ef2
function c51562802.intg(e,tp,eg,ep,ev,re,r,rp,chk) function c51562802.intg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,nil) and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO)
...@@ -72,7 +72,7 @@ function c51562802.inop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function c51562802.inop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
tc=g:GetNext()
end end
tc=g:GetNext()
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