Commit 0432051b authored by nekrozar's avatar nekrozar
parent 91517238
...@@ -40,10 +40,10 @@ function c52248570.filter(c) ...@@ -40,10 +40,10 @@ function c52248570.filter(c)
return c:IsFaceup() and c:IsLevelBelow(4) and c:IsRace(RACE_FIEND) return c:IsFaceup() and c:IsLevelBelow(4) and c:IsRace(RACE_FIEND)
end end
function c52248570.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c52248570.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c52248570.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c52248570.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c52248570.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c52248570.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c52248570.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
function c52248570.atkop(e,tp,eg,ep,ev,re,r,rp) function c52248570.atkop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) or not Duel.IsEnvironment(94585852) then return end if not e:GetHandler():IsRelateToEffect(e) or not Duel.IsEnvironment(94585852) then return end
......
...@@ -55,10 +55,10 @@ function c8581705.filter(c) ...@@ -55,10 +55,10 @@ function c8581705.filter(c)
return c:IsFaceup() and c:IsSetCard(0x45) return c:IsFaceup() and c:IsSetCard(0x45)
end end
function c8581705.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c8581705.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c8581705.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c8581705.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c8581705.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c8581705.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c8581705.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
function c8581705.atkop(e,tp,eg,ep,ev,re,r,rp) function c8581705.atkop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
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