Commit 096c1b11 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c21113606.lua

parent 977c6c8b
Pipeline #31189 failed with stages
in 25 minutes and 42 seconds
......@@ -15,12 +15,12 @@ end
function c21113606.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0
end
function c21113606.q(c)
return c:IsControlerCanBeChanged() and c:IsFaceup()
function c21113606.q(c,e)
return c:IsControlerCanBeChanged() and c:IsFaceup() and c:IsCanBeEffectTarget(e)
end
function c21113606.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,4,1,nil) end
local g=Duel.GetMatchingGroup(c21113606.q,tp,0,4,nil)
local g=Duel.GetMatchingGroup(c21113606.q,tp,0,4,nil,e)
local sg=g:RandomSelect(tp,1,1)
Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,sg,1,0,0)
......
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