Skip to content

Commit 0099f8c

Browse files
committed
updated rush cards that take control
1 parent 87b613a commit 0099f8c

6 files changed

Lines changed: 24 additions & 24 deletions

File tree

rush/c160015065.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
3333
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,1,nil) end
3434
end
3535
function s.ctrlfilter(c)
36-
return c:IsFaceup() and c:IsRace(RACE_MAGICALKNIGHT) and c:IsLevelAbove(9) and c:IsType(TYPE_FUSION) and c:GetBaseAttack()==3000 and c:IsControlerCanBeChanged(true)
36+
return c:IsFaceup() and c:IsRace(RACE_MAGICALKNIGHT) and c:IsLevelAbove(9) and c:IsType(TYPE_FUSION) and c:GetBaseAttack()==3000
3737
end
3838
function s.activate(e,tp,eg,ep,ev,re,r,rp)
3939
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
@@ -60,11 +60,11 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6060
e2:SetReset(RESET_PHASE|PHASE_END)
6161
e2:SetLabelObject(e1)
6262
Duel.RegisterEffect(e2,tp)
63-
if Duel.IsExistingMatchingCard(s.ctrlfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
63+
if Duel.IsExistingMatchingCard(s.ctrlfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
6464
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
6565
local dg=Duel.SelectMatchingCard(tp,s.ctrlfilter,tp,0,LOCATION_MZONE,1,1,nil)
6666
if #dg>0 then
67-
Duel.HintSelection(dg,true)
67+
Duel.HintSelection(dg)
6868
Duel.GetControl(dg,tp)
6969
end
7070
end

rush/c160019046.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function s.revop(e,tp,eg,ep,ev,re,r,rp)
4747
end
4848
end
4949
function s.ctrlfilter(c)
50-
return c:IsFaceup() and c:IsRace(RACE_FAIRY) and not c:IsType(TYPE_MAXIMUM) and c:IsControlerCanBeChanged(true)
50+
return c:IsFaceup() and c:IsRace(RACE_FAIRY) and not c:IsType(TYPE_MAXIMUM)
5151
end
5252
function s.ctrltg(e,tp,eg,ep,ev,re,r,rp,chk)
5353
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0

rush/c160020023.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3535
Duel.SetPossibleOperationInfo(0,CATEGORY_CONTROL,nil,1,0,0)
3636
end
3737
function s.ctrlfilter(c)
38-
return c:IsFaceup() and c:IsLevelBelow(8) and not c:IsType(TYPE_MAXIMUM) and c:IsControlerCanBeChanged(true)
38+
return c:IsFaceup() and c:IsLevelBelow(8) and not c:IsType(TYPE_MAXIMUM)
3939
end
4040
function s.operation(e,tp,eg,ep,ev,re,r,rp)
4141
local c=e:GetHandler()

rush/c160205061.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function s.costfilter(c,tp)
2424
and Duel.IsExistingMatchingCard(s.ctrlfilter,tp,0,LOCATION_MZONE,1,nil,c:GetRace())
2525
end
2626
function s.ctrlfilter(c,race)
27-
return c:IsFaceup() and c:IsRace(race) and c:IsLevelBetween(5,8) and c:IsControlerCanBeChanged(true)
27+
return c:IsFaceup() and c:IsRace(race) and c:IsLevelBetween(5,8)
2828
end
2929
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
3030
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() and Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil,tp) end
@@ -45,7 +45,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4545
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
4646
local dg=Duel.SelectMatchingCard(tp,s.ctrlfilter,tp,0,LOCATION_MZONE,1,1,nil,race)
4747
if #dg>0 then
48-
Duel.HintSelection(dg,true)
48+
Duel.HintSelection(dg)
4949
Duel.GetControl(dg,tp)
5050
end
5151
end

rush/c160323029.lua

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function s.initial_effect(c)
1414
c:RegisterEffect(e1)
1515
end
1616
function s.filter(c)
17-
return c:IsFaceup() and not c:IsMaximumMode() and c:IsControlerCanBeChanged(true)
17+
return c:IsFaceup() and not c:IsMaximumMode()
1818
end
1919
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2020
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
@@ -28,18 +28,17 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
2828
if #g==0 then return end
2929
local tc=g:GetFirst()
3030
Duel.HintSelection(g)
31-
if Duel.GetControl(tc,tp) then
32-
local e1=Effect.CreateEffect(c)
33-
local reset=RESETS_STANDARD_PHASE_END&~RESET_TURN_SET
34-
e1:SetType(EFFECT_TYPE_SINGLE)
35-
e1:SetCode(EFFECT_UNRELEASABLE_SUM)
36-
e1:SetReset(reset)
37-
e1:SetValue(1)
38-
tc:RegisterEffect(e1)
39-
local e3=Effect.CreateEffect(c)
40-
e3:SetType(EFFECT_TYPE_SINGLE)
41-
e3:SetCode(EFFECT_CANNOT_ATTACK)
42-
e3:SetReset(reset)
43-
tc:RegisterEffect(e3)
44-
end
31+
Duel.GetControl(tc,tp)
32+
local e1=Effect.CreateEffect(c)
33+
local reset=RESETS_STANDARD_PHASE_END&~RESET_TURN_SET
34+
e1:SetType(EFFECT_TYPE_SINGLE)
35+
e1:SetCode(EFFECT_UNRELEASABLE_SUM)
36+
e1:SetReset(reset)
37+
e1:SetValue(1)
38+
tc:RegisterEffect(e1)
39+
local e2=Effect.CreateEffect(c)
40+
e2:SetType(EFFECT_TYPE_SINGLE)
41+
e2:SetCode(EFFECT_CANNOT_ATTACK)
42+
e2:SetReset(reset)
43+
tc:RegisterEffect(e2)
4544
end

rush/c160455005.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp)
2020
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN)
2121
end
2222
function s.ctrlfilter(c)
23-
return c:IsFacedown() and c:IsControlerCanBeChanged()
23+
return c:IsFacedown()
2424
end
2525
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
2626
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,2,nil) end
2727
end
2828
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
29-
if chk==0 then return Duel.IsExistingMatchingCard(s.ctrlfilter,tp,0,LOCATION_MZONE,1,nil) end
29+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
30+
and Duel.IsExistingMatchingCard(s.ctrlfilter,tp,0,LOCATION_MZONE,1,nil) end
3031
Duel.SetOperationInfo(0,CATEGORY_CONTROL,nil,1,0,0)
3132
end
3233
function s.operation(e,tp,eg,ep,ev,re,r,rp)

0 commit comments

Comments
 (0)