Commit d2f589a9 authored by TanakaKotoha's avatar TanakaKotoha

wadashimo

parent e3ace390
...@@ -23,6 +23,7 @@ function sr_kmmm.load_metatable(code) ...@@ -23,6 +23,7 @@ function sr_kmmm.load_metatable(code)
end end
function sr_kmmm.limitcon(e,tp,eg,ep,ev,re,r,rp) function sr_kmmm.limitcon(e,tp,eg,ep,ev,re,r,rp)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
local tp=e:GetHandler():GetControler()
return Duel.GetTurnPlayer()==tp or ( Duel.GetFlagEffect(tp,12034010)>0 and ph==PHASE_MAIN1 ) return Duel.GetTurnPlayer()==tp or ( Duel.GetFlagEffect(tp,12034010)>0 and ph==PHASE_MAIN1 )
end end
function sr_kmmm.fusion_effect(c,m,des) function sr_kmmm.fusion_effect(c,m,des)
...@@ -111,7 +112,7 @@ function sr_kmmm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -111,7 +112,7 @@ function sr_kmmm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
res=Duel.IsExistingMatchingCard(sr_kmmm.spfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg4,mf,chkf) res=Duel.IsExistingMatchingCard(sr_kmmm.spfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg4,mf,chkf)
end end
end end
return ( (c:IsCode(12034001) and b2) or res ) and ( (c:IsCode(12034000) and b1) or not c:IsCode(12034000)) return ( (c:IsCode(12034001) and b2) or res )and ( (c:IsCode(12034000) and b1) or not c:IsCode(12034000))
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,LOCATION_MZONE+LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,LOCATION_MZONE+LOCATION_HAND)
...@@ -294,4 +295,4 @@ function cm.ex_effect_operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -294,4 +295,4 @@ function cm.ex_effect_operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(RACE_ALL) e1:SetValue(RACE_ALL)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
end end
\ No newline at end of file
...@@ -20,7 +20,7 @@ function c30556006.initial_effect(c) ...@@ -20,7 +20,7 @@ function c30556006.initial_effect(c)
e4:SetCategory(CATEGORY_DAMAGE+CATEGORY_TOGRAVE) e4:SetCategory(CATEGORY_DAMAGE+CATEGORY_TOGRAVE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_DESTROY) e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetTarget(c30556006.damtg) e4:SetTarget(c30556006.damtg)
e4:SetOperation(c30556006.damop) e4:SetOperation(c30556006.damop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
...@@ -20,7 +20,7 @@ function c30556007.initial_effect(c) ...@@ -20,7 +20,7 @@ function c30556007.initial_effect(c)
e4:SetCategory(CATEGORY_DAMAGE+CATEGORY_TOGRAVE) e4:SetCategory(CATEGORY_DAMAGE+CATEGORY_TOGRAVE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_DESTROY) e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetTarget(c30556007.damtg) e4:SetTarget(c30556007.damtg)
e4:SetOperation(c30556007.damop) e4:SetOperation(c30556007.damop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
...@@ -17,7 +17,7 @@ function c30556008.initial_effect(c) ...@@ -17,7 +17,7 @@ function c30556008.initial_effect(c)
e4:SetCategory(CATEGORY_DAMAGE) e4:SetCategory(CATEGORY_DAMAGE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_DESTROY) e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetTarget(c30556008.damtg) e4:SetTarget(c30556008.damtg)
e4:SetOperation(c30556008.damop) e4:SetOperation(c30556008.damop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
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