Commit 0a729313 authored by Nemo Ma's avatar Nemo Ma

fix

parent 605e749f
......@@ -33,7 +33,7 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e2:SetCode(EVENT_LEAVE_FIELD)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,m+1)
......@@ -130,6 +130,7 @@ function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
return g:CheckSubGroup(cm.fselect,1,maxlink,tp)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanSpecialSummonCount(tp,2) then return end
......
......@@ -54,11 +54,12 @@ function cm.initial_effect(c)
end
end
function c22348128.cfilter(c,tp)
function c22348128.cfilter(c,e)
local tp=e:GetHandler():GetControler()
return c:IsControler(tp)
end
function c22348128.checkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c22348128.cfilter,1,nil,tp)
return eg:IsExists(c22348128.cfilter,1,nil,e)
end
function c22348128.checkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -81,7 +82,7 @@ function c22348128.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c22348128.cgcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(1-tp,22348128)>=4
return Duel.GetFlagEffect(tp,22348128)>=4
end
function c22348128.fufilter(c)
return c:IsFacedown()
......
......@@ -66,7 +66,7 @@ function cm.repval(e,c)
return false
end
function cm.tdfilter(c)
return c:GetFlagEffect(m)~=0
return c:GetFlagEffect(m)~=0 and c:IsLocation(LOCATION_DECK)
end
function cm.tdcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.tdfilter,1,nil)
......
......@@ -53,7 +53,7 @@ function cm.fselect(g,res)
return (res and #g~=2 and (g:IsExists(Card.IsSetCard,1,nil,0x553b) or #g==3)) or (not res and #g==3)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local cost=Duel.GetMatchingGroup(function(c)return c:GetType()&0x20004==0x20004 and c:IsReleasable()end,tp,LOCATION_ONFIELD,0,nil)
local cost=Duel.GetMatchingGroup(function(c)return c:GetType()&0x20004==0x20004 and c:IsReleasable()end,tp,LOCATION_ONFIELD,0,e:GetHandler())
local res=Duel.GetTurnPlayer()==1-tp and Duel.GetCurrentPhase()==PHASE_END
if chk==0 then return cost:CheckSubGroup(cm.fselect,1,3,res) and not e:GetHandler():IsForbidden() and e:GetHandler():CheckUniqueOnField(tp) and Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)==0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
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