Commit 773b50ff authored by wyykak's avatar wyykak

fix sama season cards' wrong dependencies on oil seasons

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 07d3d191
Pipeline #10123 passed with stage
in 46 seconds
......@@ -23,9 +23,7 @@ function c10100.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(e1,tp)
local c,n,m = Nef.GetDate()
local flag = Duel.IsPlayerAffectedByEffect(tp, 999104) and Nef.GetCommonCounter(999104, tp) == 4
if ((n==12 or n<3) or flag) and Duel.SelectYesNo(tp,aux.Stringid(10100,0)) then
if flag then Duel.Hint(HINT_CARD, 0, 999104) end
if (n==12 or n<3) and Duel.SelectYesNo(tp,aux.Stringid(10100,0)) then
Duel.Recover(tp,2000,REASON_EFFECT)
end
end
......@@ -24,20 +24,17 @@ function c20200.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g1,2,0,0)
local y,m,d = Nef.GetDate()
local flag = Duel.IsPlayerAffectedByEffect(tp, 999104) and Nef.GetCommonCounter(999104, tp) == 1
if (m>=3 and m<=5) or flag then
if m>=3 and m<=5 then
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
end
end
function c20200.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local y,m,d = Nef.GetDate()
local flag = Duel.IsPlayerAffectedByEffect(tp, 999104) and Nef.GetCommonCounter(999104, tp) == 1
if g:GetCount()==2 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
if (m>=3 and m<=5) or flag then
if flag then Duel.Hint(HINT_CARD, 0, 999104) end
if m>=3 and m<=5 then
Duel.Recover(tp,1000,REASON_EFFECT)
local sg=Duel.SelectMatchingCard(tp,Card.IsFaceup,tp,LOCATION_REMOVED,0,1,1,nil)
if sg:GetCount()>0 then
......
......@@ -35,10 +35,8 @@ function c22400.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local d,p,l = Nef.GetDate()
local flag = Duel.IsPlayerAffectedByEffect(tp, 999104) and Nef.GetCommonCounter(999104, tp) == 2
local g=Duel.GetMatchingGroup(c22400.filter,tp,LOCATION_MZONE,0,nil)
if flag then Duel.Hint(HINT_CARD, 0, 999104) end
if ((p>5 or p<10) or flag) and g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(22400,0)) then
if (p>5 or p<10) and g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(22400,0)) then
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(c)
......
......@@ -25,9 +25,7 @@ function c23300.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c23300.filter1,tp,0,LOCATION_ONFIELD,1,nil)
or Duel.IsExistingTarget(c23300.filter2,tp,0,LOCATION_ONFIELD,1,nil) end
local y,m,d = Nef.GetDate()
local flag = Duel.IsPlayerAffectedByEffect(tp, 999104) and Nef.GetCommonCounter(999104, tp) == 3
if (m==10 or m==11) or flag then
if flag then Duel.Hint(HINT_CARD, 0, 999104) end
if m==10 or m==11 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c23300.filter,tp,0,LOCATION_ONFIELD,1,2,nil)
else
......
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