Commit 0e375040 authored by Tachibana's avatar Tachibana

得得得得得

parent d9610350
Pipeline #12115 passed with stages
in 30 minutes and 51 seconds
...@@ -12,12 +12,12 @@ function cm.initial_effect(c) ...@@ -12,12 +12,12 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==tp or ep==tp return ep~=tp
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(Card.IsAbleToGrave,1,nil) end if chk==0 then return eg:IsExists(Card.IsAbleToGrave,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,eg,eg:GetCount(),tp,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,eg,eg:GetCount(),1-tp,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,tp,eg:GetCount()*3) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,1-tp,eg:GetCount()*3)
end end
function cm.docheck(c) function cm.docheck(c)
return c:IsAbleToGrave() and c:IsLocation(LOCATION_HAND) return c:IsAbleToGrave() and c:IsLocation(LOCATION_HAND)
...@@ -28,7 +28,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
local og=Duel.GetOperatedGroup() local og=Duel.GetOperatedGroup()
local num=og:GetCount() local num=og:GetCount()
Duel.Draw(tp,num*3,REASON_RULE) Duel.Draw(1-tp,num*3,REASON_RULE)
end end
end end
\ No newline at end of file
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