Commit 72ac9004 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12031005.lua

parent 2b91930c
......@@ -52,8 +52,13 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.SendtoHand(re:GetHandler(),nil,REASON_EFFECT)
local sc=Duel.GetOperatedGroup()
if sc:GetCount()==0 then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.NegateActivation(ev)
else
if not sc:GetFirst():IsLocation(LOCATION_HAND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.NegateActivation(ev)
end
end
end
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