Skip to content

Commit 7da2011

Browse files
committed
updated some cards that can attack directly
1 parent 084b5a4 commit 7da2011

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

rush/c160026017.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@ function s.initial_effect(c)
1616
end
1717
function s.condition(e,tp,eg,ep,ev,re,r,rp)
1818
local c=e:GetHandler()
19-
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
19+
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) and Duel.IsAbleToEnterBP()
2020
end
2121
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
2222
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,1) end
2323
end
24-
function s.condition(e,tp,eg,ep,ev,re,r,rp)
25-
return Duel.IsAbleToEnterBP()
26-
end
2724
function s.filter(c,tc)
2825
return c:IsRace(RACE_PLANT) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_UNION)
2926
and c.eqeffect and c.equipfilter and c.equipfilter(tc)

rush/c160301009.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ function s.initial_effect(c)
77
e1:SetType(EFFECT_TYPE_IGNITION)
88
e1:SetRange(LOCATION_MZONE)
99
e1:SetCountLimit(1)
10+
e1:SetCondition(s.condition)
1011
e1:SetCost(s.cost)
1112
e1:SetTarget(s.target)
1213
e1:SetOperation(s.operation)
1314
c:RegisterEffect(e1)
1415
end
16+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
17+
return Duel.IsAbleToEnterBP()
18+
end
1519
--Check if this card can be sent to GY
1620
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
1721
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end

0 commit comments

Comments
 (0)