Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rush/c160002029.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.spcond(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) and c:IsSummonPhaseMain()
end
function s.filter(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsRace(RACE_DINOSAUR) and c:IsLevelBelow(6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
Expand Down
27 changes: 8 additions & 19 deletions rush/c160003020.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,23 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(s.drcon)
e1:SetTarget(s.drtg)
e1:SetOperation(s.drop)
e1:SetCondition(s.condition)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
aux.GlobalCheck(s,function()
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_SPSUMMON_SUCCESS)
ge1:SetLabel(id)
ge1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
ge1:SetOperation(aux.sumreg)
Duel.RegisterEffect(ge1,0)
end)
end
--If this card was summoned from hand or GY this turn and check for 4+ dragons in your GY
function s.drcon(e,tp,eg,ep,ev,re,r,rp)
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_GRAVE,0,4,nil,RACE_DRAGON)
and e:GetHandler():GetFlagEffect(id)>0 and e:GetHandler():IsSummonLocation(LOCATION_HAND|LOCATION_GRAVE)
and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonPhaseMain() and c:IsSummonLocation(LOCATION_HAND|LOCATION_GRAVE)
end
--Activation legality
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
--Draw 1 card
function s.drop(e,tp,eg,ep,ev,re,r,rp)
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
3 changes: 2 additions & 1 deletion rush/c160004031.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.poscond(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) and c:IsSummonPhaseMain()
end
function s.filter(c)
return c:IsFacedown() and c:IsDefensePos()
Expand Down
3 changes: 2 additions & 1 deletion rush/c160004032.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) and c:IsSummonPhaseMain()
end
--Activation legality
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
17 changes: 11 additions & 6 deletions rush/c160007038.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local s,id=GetID()
function s.initial_effect(c)
c:EnableReviveLimit()
-- "Masked Fiery Noodle Jonin Kaedama Gockboot" + "Taste Inspector"
--"Masked Fiery Noodle Jonin Kaedama Gockboot" + "Taste Inspector"
Fusion.AddProcMix(c,true,true,160003033,CARD_TASTE_INSPECTOR)
-- Damage and draw
local e1=Effect.CreateEffect(c)
Expand All @@ -13,12 +13,17 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(s.damtg)
e1:SetOperation(s.damop)
e1:SetCondition(s.condition)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN) end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonPhaseMain()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1000)
Expand All @@ -27,7 +32,7 @@ end
function s.setfilter(c)
return c:IsCode(160003046,160007051) and c:IsSSetable()
end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
Expand Down
7 changes: 6 additions & 1 deletion rush/c160008042.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,24 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(s.condition)
e1:SetCost(s.cost)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonPhaseMain()
end
function s.cfilter(c)
return c:IsRace(RACE_BEAST) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsAbleToDeckOrExtraAsCost()
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,4,nil) end
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
Expand Down
14 changes: 9 additions & 5 deletions rush/c160009041.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,25 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_TOHAND)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(function(e) return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN) end)
e1:SetTarget(s.destg)
e1:SetOperation(s.desop)
e1:SetCondition(s.condition)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
s.listed_materials={160201007,160009009}
s.listed_names={160009060,160009061}
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonPhaseMain()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsType,TYPE_NORMAL),tp,0,LOCATION_MZONE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_MZONE)
end
function s.thfilter(c)
return c:IsCode(160009060,160009061) and c:IsAbleToHand()
end
function s.desop(e,tp,eg,ep,ev,re,r,rp)
function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,aux.FaceupFilter(Card.IsType,TYPE_NORMAL),tp,0,LOCATION_MZONE,1,1,nil)
if #dg<1 then return end
Expand Down
2 changes: 1 addition & 1 deletion rush/c160010031.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
--Effect
if Duel.DiscardDeck(tp,2,REASON_EFFECT)==0 then return end
local c=e:GetHandler()
if Duel.IsMainPhase() and c:IsStatus(STATUS_SPSUMMON_TURN+STATUS_SUMMON_TURN) and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
if c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN+STATUS_SUMMON_TURN) and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if #g>0 then
Expand Down
3 changes: 2 additions & 1 deletion rush/c160010032.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsMainPhase() and e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN+STATUS_SUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN+STATUS_SUMMON_TURN)
end
function s.spfilter(c,e,tp)
local lv=c:GetLevel()
Expand Down
3 changes: 2 additions & 1 deletion rush/c160010033.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function s.initial_effect(c)
end
s.listed_names={160002039,160004060}
function s.poscond(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.poscost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,700) end
Expand Down
4 changes: 3 additions & 1 deletion rush/c160011028.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ function s.initial_effect(c)
end
s.listed_names={160005065,160004030,160203039}
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,3,nil) and e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,3,nil)
and c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.setfilter(c)
return c:IsCode(160005065) and c:IsSSetable()
Expand Down
3 changes: 2 additions & 1 deletion rush/c160011036.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_HAND,0,1,nil) end
Expand Down
21 changes: 9 additions & 12 deletions rush/c160012017.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
--Requirement
if Duel.DiscardDeck(tp,2,REASON_COST)==2 then
--Effect
if c:IsRelateToEffect(e) and c:IsFaceup() then
--Piercing
c:AddPiercing(RESETS_STANDARD_PHASE_END)
local desg=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil)
if #desg>0 and c:IsStatus(STATUS_SPSUMMON_TURN) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local tg=Duel.SelectMatchingCard(tp,aux.FilterMaximumSideFunctionEx(s.desfilter),tp,0,LOCATION_MZONE,1,1,nil)
if #tg>0 then
tg=tg:AddMaximumCheck()
Duel.HintSelection(tg,true)
Duel.Destroy(tg,REASON_EFFECT)
end
c:AddPiercing(RESETS_STANDARD_PHASE_END)
local desg=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil)
if #desg>0 and c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local tg=Duel.SelectMatchingCard(tp,aux.FilterMaximumSideFunctionEx(s.desfilter),tp,0,LOCATION_MZONE,1,1,nil)
if #tg>0 then
tg=tg:AddMaximumCheck()
Duel.HintSelection(tg)
Duel.Destroy(tg,REASON_EFFECT)
end
end
end
Expand Down
6 changes: 5 additions & 1 deletion rush/c160012026.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(function(e) return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) end)
e1:SetCondition(s.condition)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
s.listed_names={CARD_FUSION}
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.setfilter(c)
return c:IsCode(CARD_FUSION) and c:IsSSetable()
end
Expand Down
3 changes: 2 additions & 1 deletion rush/c160012032.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Expand Down
3 changes: 2 additions & 1 deletion rush/c160013004.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function s.initial_effect(c)
end
s.listed_names={CARD_BLUETOOTH_B_DRAGON,CARD_REDBOOT_B_DRAGON}
function s.damcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,CARD_BLUETOOTH_B_DRAGON,CARD_REDBOOT_B_DRAGON),tp,LOCATION_ONFIELD,0,1,nil)
end
function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Expand Down
6 changes: 5 additions & 1 deletion rush/c160013005.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(function(e) return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) end)
e1:SetCondition(s.condition)
e1:SetCost(s.cost)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
s.listed_names={CARD_BLUETOOTH_B_DRAGON,CARD_REDBOOT_B_DRAGON,160013048,160013049}
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.cfilter(c)
return c:IsCode(CARD_BLUETOOTH_B_DRAGON,CARD_REDBOOT_B_DRAGON) and not c:IsPublic()
end
Expand Down
15 changes: 8 additions & 7 deletions rush/c160013039.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(s.spcon)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
e1:SetCondition(s.condition)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN)
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN)
end
function s.filter(c,e,tp)
return c:IsLevel(8) and c:IsRace(RACE_GALAXY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
function s.operation(e,tp,eg,ep,ev,re,r,rp)
--Effect
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Expand Down
3 changes: 2 additions & 1 deletion rush/c160014019.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=3 end
Expand Down
3 changes: 2 additions & 1 deletion rush/c160014038.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function s.initial_effect(c)
end
s.listed_names={160011040} --Galactica Xiphos
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_GRAVE,0,3,nil,RACE_GALAXY)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN) and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_GRAVE,0,3,nil,RACE_GALAXY)
end
function s.thfilter(c)
return c:IsCode(160011040) and c:IsAbleToHand()
Expand Down
3 changes: 2 additions & 1 deletion rush/c160014040.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,0,LOCATION_ONFIELD,1,nil) end
Expand Down
6 changes: 4 additions & 2 deletions rush/c160014046.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ function s.initial_effect(c)
end
s.material_setcode=SET_GAIA_THE_FIERCE_KNIGHT
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():CanAttack() and e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:CanAttack() and c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN)
end
function s.cfilter(c)
return c:IsMonster() and not c:IsRace(RACE_MAGICALKNIGHT) and c:IsAbleToDeckOrExtraAsCost()
Expand Down Expand Up @@ -61,7 +62,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN)
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local dg=Duel.GetMatchingGroup(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,nil)
Expand Down
3 changes: 2 additions & 1 deletion rush/c160015015.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function s.initial_effect(c)
end
s.listed_names={160002025}
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN|STATUS_SUMMON_TURN)
local c=e:GetHandler()
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2) end
Expand Down
Loading