Commit 116763ac authored by nanahira's avatar nanahira

new

parent 9570e01d
...@@ -86,7 +86,7 @@ end) ...@@ -86,7 +86,7 @@ end)
standbyPhaseSkill(2295831, function(e,tp,eg,ep,ev,re,r,rp) standbyPhaseSkill(2295831, function(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_RULE) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end, function(e,tp,eg,ep,ev,re,r,rp) end, function(e,tp,eg,ep,ev,re,r,rp)
...@@ -290,6 +290,34 @@ wrapDeckSkill(4392470, function(e1) ...@@ -290,6 +290,34 @@ wrapDeckSkill(4392470, function(e1)
e1:SetOperation(initializeLion) e1:SetOperation(initializeLion)
end) end)
standbyPhaseSkill(42829885, function(e,tp,eg,ep,ev,re,r,rp)
local p=tp
local g=Duel.GetFieldGroup(p,0,LOCATION_HAND)
if g:GetCount()>0 then
Duel.ConfirmCards(p,g)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK)
local sg=g:Select(p,1,1,nil)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.ShuffleHand(1-p)
end
end, function(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 and Duel.GetTurnPlayer()==1-tp
end, true)
addSkill(99177923, function(e1)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_LOSE_KOISHI)
e1:SetProperty(e1:GetProperty()|EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetValue(1)
end)
endPhaseSkill(99177923, function(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardDeck(tp,8,REASON_EFFECT)
end, function(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<=0
end)
local function initialize() local function initialize()
local skillSelections={} local skillSelections={}
local skillCodes=getAllSkillCodes() local skillCodes=getAllSkillCodes()
......
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