Commit f4a50b08 authored by IMJoyJ's avatar IMJoyJ

add skill 71490127

parent 4b3466ba
...@@ -79,6 +79,7 @@ local function endPhaseSkill(code, op, con, both) ...@@ -79,6 +79,7 @@ local function endPhaseSkill(code, op, con, both)
phaseSkill(code, PHASE_END, op, con, both) phaseSkill(code, PHASE_END, op, con, both)
end end
standbyPhaseSkill(48356796, function(e,tp,eg,ep,ev,re,r,rp) standbyPhaseSkill(48356796, function(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,2,REASON_RULE) Duel.Draw(tp,2,REASON_RULE)
end) end)
...@@ -162,6 +163,16 @@ end, function(e,tp) ...@@ -162,6 +163,16 @@ end, function(e,tp)
return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil)
end) end)
phaseSkill(71490127, PHASE_BATTLE_START, function(e,tp,eg,ep,ev,re,r,rp)
local num=#Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_SZONE,0,nil)
for _=1,num do
local tc=Duel.CreateToken(tp,99267150)
Duel.MoveToField(tc,tp,tp,LOCATION_MZONE,POS_FACEDOWN_DEFENSE,true)
end
end, function(e,tp)
return (#Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_SZONE,0,nil))>0
end,true)
addSkill(9952083, function(e1) addSkill(9952083, function(e1)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SET_SUMMON_COUNT_LIMIT) e1:SetCode(EFFECT_SET_SUMMON_COUNT_LIMIT)
...@@ -247,6 +258,7 @@ oneTimeSkill(21082832, function(e,tp,eg,ep,ev,re,r,rp) ...@@ -247,6 +258,7 @@ oneTimeSkill(21082832, function(e,tp,eg,ep,ev,re,r,rp)
end) end)
function c18940556_tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c18940556_tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget() end if chk==0 then return Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget() end
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil) local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil)
......
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