Commit dbaecd1c authored by Tachibana's avatar Tachibana

sign out

parent ba96ea50
Pipeline #2967 passed with stages
in 26 minutes and 34 seconds
......@@ -63,10 +63,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
cm[tc:GetOwnerPlayer()]=cm[tc:GetOwnerPlayer()]+1
cm[ep]=cm[ep]+ev
end
function cm.checkop1(e,tp,eg,ep,ev,re,r,rp)
cm[tc:GetOwnerPlayer()]=cm[tc:GetOwnerPlayer()+2]+1
cm[ep+2]=cm[ep+2]+2
end
function cm.clear(e,tp,eg,ep,ev,re,r,rp)
cm[0]=0
......
......@@ -87,7 +87,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
if ep==tp and 1-ep==rp and bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 then
if 1-ep==rp and bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 then
cm[ep]=cm[ep]+ev
end
end
......
......@@ -70,7 +70,7 @@ function cm.thfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end
function cm.acttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.thfilter(chkc) end
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and cm.thfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.thfilter,tp,0,LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,cm.thfilter,tp,0,LOCATION_GRAVE,1,1,nil)
......
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_REMOVE+CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_EFFECT)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_REMOVED)
e2:SetCountLimit(1,m+900)
e2:SetTarget(cm.tdtg)
......@@ -81,11 +81,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsAbleToRemove() end
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToRemove() end
if chk==0 then return e:GetHandler():IsAbleToDeck()
and Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
and Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,e:GetHandler(),1,0,0)
end
......@@ -98,3 +98,8 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
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