Commit cafd81e6 authored by salix5's avatar salix5

sylvan

parent 895fcb6e
...@@ -65,7 +65,7 @@ function c10530913.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,7 @@ function c10530913.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c10530913.thcon(e,tp,eg,ep,ev,re,r,rp) function c10530913.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c10530913.thfilter(c) function c10530913.thfilter(c)
return c:IsSetCard(0x90) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x90) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
...@@ -52,7 +52,7 @@ function c10753491.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c10753491.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c10753491.spcon(e,tp,eg,ep,ev,re,r,rp) function c10753491.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c10753491.filter(c,e,tp) function c10753491.filter(c,e,tp)
return c:GetLevel()==1 and c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==1 and c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -37,7 +37,7 @@ function c11682713.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c11682713.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c11682713.tdcon(e,tp,eg,ep,ev,re,r,rp) function c11682713.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c11682713.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c11682713.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end if chk==0 then return e:GetHandler():IsAbleToHand() end
......
...@@ -50,7 +50,7 @@ function c20579538.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c20579538.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c20579538.spcon(e,tp,eg,ep,ev,re,r,rp) function c20579538.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c20579538.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c20579538.sptg(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
......
...@@ -36,7 +36,7 @@ function c25824484.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c25824484.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c25824484.sdcon(e,tp,eg,ep,ev,re,r,rp) function c25824484.sdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c25824484.sdop(e,tp,eg,ep,ev,re,r,rp) function c25824484.sdop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0) local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
......
...@@ -52,7 +52,7 @@ function c36046926.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c36046926.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c36046926.descon(e,tp,eg,ep,ev,re,r,rp) function c36046926.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c36046926.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36046926.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end
......
...@@ -43,7 +43,7 @@ function c47077318.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c47077318.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c47077318.tdcon(e,tp,eg,ep,ev,re,r,rp) function c47077318.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c47077318.filter(c) function c47077318.filter(c)
return c:IsFaceup() and c:IsRace(RACE_PLANT) return c:IsFaceup() and c:IsRace(RACE_PLANT)
......
...@@ -13,8 +13,7 @@ function c47741109.initial_effect(c) ...@@ -13,8 +13,7 @@ function c47741109.initial_effect(c)
end end
function c47741109.condition(e,tp,eg,ep,ev,re,r,rp) function c47741109.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD) or (c:IsPreviousLocation(LOCATION_DECK) and return c:IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD) or (c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL))
(c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE))
end end
function c47741109.target(e,tp,eg,ep,ev,re,r,rp,chk) function c47741109.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
......
...@@ -37,7 +37,7 @@ function c62434031.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c62434031.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c62434031.tdcon(e,tp,eg,ep,ev,re,r,rp) function c62434031.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c62434031.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c62434031.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x90) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x90) end
......
...@@ -42,7 +42,7 @@ function c63257623.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c63257623.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c63257623.spcon(e,tp,eg,ep,ev,re,r,rp) function c63257623.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c63257623.filter(c,e,tp) function c63257623.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -49,7 +49,7 @@ function c73136204.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c73136204.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c73136204.tdcon(e,tp,eg,ep,ev,re,r,rp) function c73136204.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c73136204.filter(c) function c73136204.filter(c)
return c:IsSetCard(0x90) and not c:IsCode(73136204) and c:IsAbleToDeck() return c:IsSetCard(0x90) and not c:IsCode(73136204) and c:IsAbleToDeck()
......
...@@ -52,7 +52,7 @@ function c99429730.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c99429730.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c99429730.tdcon(e,tp,eg,ep,ev,re,r,rp) function c99429730.tdcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c99429730.filter(c) function c99429730.filter(c)
return c:IsRace(RACE_PLANT) and c:IsAbleToDeck() return c:IsRace(RACE_PLANT) and c:IsAbleToDeck()
......
...@@ -52,7 +52,7 @@ function c99641328.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c99641328.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c99641328.descon(e,tp,eg,ep,ev,re,r,rp) function c99641328.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and (c:IsReason(REASON_REVEAL) or c:GetPreviousPosition()==POS_FACEUP_DEFENCE) return c:IsPreviousLocation(LOCATION_DECK) and c:IsReason(REASON_REVEAL)
end end
function c99641328.desfilter(c) function c99641328.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
......
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