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