Commit c0e32b5a authored by GuGu's avatar GuGu

Update c66916006.lua

parent 8e3e6c9c
Pipeline #29189 passed with stage
in 8 seconds
...@@ -37,14 +37,14 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -37,14 +37,14 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return if chk==0 then return
eg:IsExists(cm.filter,1,nil,e,tp,re) eg:IsExists(cm.filter,1,nil,e,tp,re)
and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_WIND,POS_FACEUP,1-tp) and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0x208,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP,1-tp)
end end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)<1 then return end if Duel.GetLocationCount(1-tp,LOCATION_MZONE)<1 then return end
if not Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_WIND,POS_FACEUP,1-tp) then return end if not Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0x208,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP,1-tp) then return end
local token=Duel.CreateToken(tp,10070) local token=Duel.CreateToken(tp,10070)
Duel.SpecialSummon(token,0,tp,1-tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,1-tp,false,false,POS_FACEUP)
end end
...@@ -54,13 +54,13 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,13 +54,13 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.targets(e,tp,eg,ep,ev,re,r,rp,chk) function cm.targets(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_WIND,POS_FACEUP,tp) end and Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0x208,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
function cm.activates(e,tp,eg,ep,ev,re,r,rp) function cm.activates(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_WIND,POS_FACEUP,tp) then return end or not Duel.IsPlayerCanSpecialSummonMonster(tp,10070,0x208,0x4011,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP,tp) then return end
local token=Duel.CreateToken(tp,10070) local token=Duel.CreateToken(tp,10070)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
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