Commit 17796e9b authored by Grajade's avatar Grajade

Update expansions/script/c1111018.lua

parent 9d07577e
......@@ -40,7 +40,7 @@ end
function c1111018.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsHasEffect(1111018) and Duel.GetMZoneCount(tp)>0
and Duel.GetMatchingGroupCount(c1111018.ofilter4,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,e,tp) then
and Duel.IsExistingMatchingCard(c1111018.ofilter4,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,tp) then
local sg=Duel.GetMatchingGroup(c1111018.ofilter4,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,e,tp)
local ct=Duel.GetMZoneCount(tp)
local ct=math.min(sg:GetCount(),ct)
......@@ -74,7 +74,7 @@ function c1111018.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(fc,REASON_RULE)
Duel.BreakEffect()
end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
local te=tc:GetActivateEffect()
te:UseCountLimit(tp,1,true)
local tep=tc:GetControler()
......
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