Commit 6d063259 authored by TanakaKotoha's avatar TanakaKotoha

y1s1qs

parent c6dcc1ab
......@@ -77,7 +77,7 @@ function cm.regop(e,tp,eg)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetValue(cm.efilter)
e2:SetCondition(cm.con1)
-- e2:SetCondition(cm.con1)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2,true)
end
......@@ -99,10 +99,7 @@ function cm.regop(e,tp,eg)
end
end
function cm.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==e:GetHandlerPlayer()
return Duel.GetTurnPlayer()==e:GetHandlerPlayer() and e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
function cm.filter(c,e,tp)
return c:IsCode(33310351,33310375)
......
......@@ -78,9 +78,10 @@ end
function cm.psop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,0,LOCATION_MZONE)
local sg=Duel.GetMatchingGroup(cm.psfilter,tp,0,LOCATION_MZONE,nil)
if #sg>0 and Duel.ChangePosition(sg,POS_FACEUP_DEFENSE)>0 then
if #sg>0 then --and Duel.ChangePosition(sg,POS_FACEUP_DEFENSE)>0 then
Duel.ChangePosition(sg,POS_FACEUP_DEFENSE)
local og=Duel.GetOperatedGroup()
local tg=g-og
local tg=g-og
if #tg>0 then
Duel.BreakEffect()
Duel.SendtoGrave(tg,REASON_RULE)
......
......@@ -63,7 +63,7 @@ function cm.pstg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.psfilter0,tp,0,LOCATION_ONFIELD,nil)
local sg=Duel.GetMatchingGroup(cm.psfilter,tp,0,LOCATION_ONFIELD,nil)
local tg=g-sg
if chk==0 then return Duel.IsExistingMatchingCard(cm.psfilter,tp,0,LOCATION_ONFIELD,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.psfilter0,tp,0,LOCATION_ONFIELD,1,nil) end
if #tg>0 then
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,tg,#tg,0,0)
end
......@@ -71,7 +71,8 @@ end
function cm.psop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.psfilter0,tp,0,LOCATION_ONFIELD,nil)
local sg=Duel.GetMatchingGroup(cm.psfilter,tp,0,LOCATION_ONFIELD,nil)
if #sg>0 and Duel.ChangePosition(sg,POS_FACEDOWN_DEFENSE)>0 then
if #sg>0 then--and Duel.ChangePosition(sg,POS_FACEDOWN_DEFENSE)>0 then
Duel.ChangePosition(sg,POS_FACEDOWN_DEFENSE)
local og=Duel.GetOperatedGroup()
Duel.RaiseEvent(og,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
local tg=g-og
......
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