Commit f87729de authored by 八宫一月's avatar 八宫一月 Committed by GitHub

Update auxiliary.golden allure queen condition (#2598)

* Update utility.lua

* Update c3134857.lua

* Update c4055337.lua

* Update c21441617.lua

* Update c30741503.lua

* Update c57835716.lua

* Update c76145142.lua

* Update c94046012.lua

* Update c23756165.lua

* Update c50140163.lua

* Update c87257460.lua
parent dbae0516
......@@ -21,10 +21,10 @@ function c21441617.initial_effect(c)
c:RegisterEffect(e2)
end
function c21441617.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,90351981)
return not aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c21441617.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,90351981)
return aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c21441617.spfilter(c,e,tp)
return c:IsSetCard(0x11b) and not c:IsCode(21441617) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -48,11 +48,11 @@ function c23756165.regop(e,tp,eg,ep,ev,re,r,rp)
end
function c23756165.eqcon1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and not aux.GoldenAllureQueenCondition(c,tp)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and not aux.IsCanbeQuickEffect(c,tp,95937545,0x3)
end
function c23756165.eqcon2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and aux.GoldenAllureQueenCondition(c,tp)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and aux.IsCanbeQuickEffect(c,tp,95937545,0x3)
end
function c23756165.filter(c)
return c:IsLevelBelow(5) and c:IsFaceup() and c:IsAbleToChangeControler()
......
......@@ -37,10 +37,10 @@ function c30741503.indcon(e)
return e:GetHandler():IsLinkState()
end
function c30741503.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,90351981)
return not aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c30741503.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,90351981)
return aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c30741503.tdfilter(c)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsAbleToDeck()
......
......@@ -42,10 +42,10 @@ function c3134857.indcon(e)
return e:GetHandler():IsLinkState()
end
function c3134857.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,90351981)
return not aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c3134857.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return aux.dscon(e,tp,eg,ep,ev,re,r,rp) and Duel.IsPlayerAffectedByEffect(tp,90351981)
return aux.dscon(e,tp,eg,ep,ev,re,r,rp) and aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c3134857.tdfilter(c)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsAbleToDeck()
......
......@@ -29,10 +29,10 @@ function c4055337.indval(e,c)
return c:IsType(TYPE_LINK)
end
function c4055337.atkcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,90351981)
return not aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c4055337.atkcon2(e,tp,eg,ep,ev,re,r,rp)
return aux.dscon(e,tp,eg,ep,ev,re,r,rp) and Duel.IsPlayerAffectedByEffect(tp,90351981)
return aux.dscon(e,tp,eg,ep,ev,re,r,rp) and aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c4055337.tgfilter(c)
return c:IsFaceup()
......
......@@ -36,11 +36,11 @@ function c50140163.regop(e,tp,eg,ep,ev,re,r,rp)
end
function c50140163.eqcon1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and not aux.GoldenAllureQueenCondition(c,tp)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and not aux.IsCanbeQuickEffect(c,tp,95937545,0x3)
end
function c50140163.eqcon2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and aux.GoldenAllureQueenCondition(c,tp)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and aux.IsCanbeQuickEffect(c,tp,95937545,0x3)
end
function c50140163.filter(c)
return c:IsAbleToChangeControler()
......
......@@ -20,10 +20,10 @@ function c57835716.initial_effect(c)
c:RegisterEffect(e2)
end
function c57835716.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,90351981)
return not aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c57835716.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,90351981)
return aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c57835716.spfilter(c,e,tp)
return c:IsSetCard(0x11b) and not c:IsCode(57835716) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -39,10 +39,10 @@ function c76145142.indcon(e)
return e:GetHandler():IsLinkState()
end
function c76145142.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,90351981)
return not aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c76145142.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,90351981)
return aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c76145142.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 end
......
......@@ -34,10 +34,10 @@ function c87257460.initial_effect(c)
end
c87257460.lvup={23756165}
function c87257460.eqcon1(e,tp,eg,ep,ev,re,r,rp)
return not aux.IsSelfEquip(e:GetHandler(),id) and not aux.GoldenAllureQueenCondition(e:GetHandler(),tp)
return not aux.IsSelfEquip(e:GetHandler(),id) and not aux.IsCanbeQuickEffect(c,tp,95937545,0x3)
end
function c87257460.eqcon2(e,tp,eg,ep,ev,re,r,rp)
return not aux.IsSelfEquip(e:GetHandler(),id) and aux.GoldenAllureQueenCondition(e:GetHandler(),tp)
return not aux.IsSelfEquip(e:GetHandler(),id) and aux.IsCanbeQuickEffect(c,tp,95937545,0x3)
end
function c87257460.filter(c)
return c:IsLevelBelow(3) and c:IsFaceup() and c:IsAbleToChangeControler()
......
......@@ -20,10 +20,10 @@ function c94046012.initial_effect(c)
c:RegisterEffect(e2)
end
function c94046012.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,90351981)
return not aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c94046012.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,90351981)
return aux.IsCanbeQuickEffect(e:GetHandler(),tp,90351981,0x11b)
end
function c94046012.spfilter(c,e,tp)
return c:IsSetCard(0x11b) and not c:IsCode(94046012) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -1646,10 +1646,12 @@ end
function Auxiliary.IsSelfEquip(c,id)
return c:GetEquipGroup():IsExists(Card.GetFlagEffect,1,nil,id)
end
---Check if the equip effect of c becomes a Quick Effect.
---Check if the effect of c becomes a Quick Effect.
---@param c Card
---@param tp integer
---@param code integer
---@param setname integer
---@return boolean
function Auxiliary.GoldenAllureQueenCondition(c,tp)
return Duel.IsPlayerAffectedByEffect(tp,95937545) and c:IsOriginalSetCard(0x3)
function Auxiliary.IsCanbeQuickEffect(c,tp,code,setname)
return Duel.IsPlayerAffectedByEffect(tp,code) and c:IsOriginalSetCard(setname)
end
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