Commit 57087107 authored by Tachibana's avatar Tachibana

1145141919810

parent b6c54765
Pipeline #14500 passed with stages
in 28 minutes and 49 seconds
......@@ -11,7 +11,7 @@ function cm.initial_effect(c)
end
cm.dff=true
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and Duel.GetCurrentChain()==0
return Duel.GetTurnPlayer()==tp and Duel.GetCurrentChain()==0 and (ph==PHASE_MAIN1 or (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) or ph==PHASE_MAIN2)
end
function cm.thfilter(c,e,tp)
return c:IsSetCard(0xccd) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
......@@ -42,7 +42,7 @@ function c65020218.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c65020218.op(e,tp,eg,ep,ev,re,r,rp)
local g=eg:FilterSelect(tp,c65020218.confil,1,3,nil)
local g=eg:FilterSelect(tp,c65020218.confil,1,3,nil,tp)
local dg=Group.CreateGroup()
local tc=g:GetFirst()
while tc do
......
......@@ -25,7 +25,7 @@ function c65052306.effcon(e,tp,eg,ep,ev,re,r,rp)
local b=Duel.GetAttackTarget()
return b and b:IsControler(tp) and b:IsRace(RACE_BEAST)
end
function c65052306.effectop(e,tp,eg,ep,ev,re,r,rp)
function c65052306.effop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
if a:IsRelateToBattle() then
Duel.Hint(HINT_CARD,0,65052306)
......
......@@ -19,7 +19,7 @@ function c65052307.initial_effect(c)
e4:SetOperation(c65052307.op)
c:RegisterEffect(e4)
end
function c65052307.targfil(c)
function c65052307.targfil(c,tp)
return c:IsRace(RACE_BEAST) and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and c:IsFaceup()
end
function c65052307.op(e,tp,eg,ep,ev,re,r,rp)
......@@ -30,18 +30,6 @@ function c65052307.op(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev)
end
end
function c65052307.effcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
local b=Duel.GetAttackTarget()
return b and b:IsControler(tp) and b:IsRace(RACE_BEAST)
end
function c65052307.effectop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
if a:IsRelateToBattle() then
Duel.Hint(HINT_CARD,0,65052307)
Duel.Destroy(a,REASON_EFFECT)
end
end
function c65052307.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
......
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