Commit ef62823e authored by Chen Bill's avatar Chen Bill

fix 魅惑の女王

add Auxiliary.GoldenAllureQueenCondition
parent af45749a
......@@ -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 Duel.IsPlayerAffectedByEffect(tp,95937545)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and not aux.GoldenAllureQueenCondition(c,tp)
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 Duel.IsPlayerAffectedByEffect(tp,95937545) and e:GetHandler():IsOriginalSetCard(0x3)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and aux.GoldenAllureQueenCondition(c,tp)
end
function c23756165.filter(c)
return c:IsLevelBelow(5) and c:IsFaceup() and c:IsAbleToChangeControler()
......
......@@ -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 Duel.IsPlayerAffectedByEffect(tp,95937545)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and not aux.GoldenAllureQueenCondition(c,tp)
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 Duel.IsPlayerAffectedByEffect(tp,95937545) and e:GetHandler():IsOriginalSetCard(0x3)
return c:GetFlagEffect(id+1)>0 and not aux.IsSelfEquip(c,id) and aux.GoldenAllureQueenCondition(c,tp)
end
function c50140163.filter(c)
return c:IsAbleToChangeControler()
......
......@@ -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 Duel.IsPlayerAffectedByEffect(tp,95937545)
return not aux.IsSelfEquip(e:GetHandler(),id) and not aux.GoldenAllureQueenCondition(e:GetHandler(),tp)
end
function c87257460.eqcon2(e,tp,eg,ep,ev,re,r,rp)
return not aux.IsSelfEquip(e:GetHandler(),id) and Duel.IsPlayerAffectedByEffect(tp,95937545) and e:GetHandler():IsOriginalSetCard(0x3)
return not aux.IsSelfEquip(e:GetHandler(),id) and aux.GoldenAllureQueenCondition(e:GetHandler(),tp)
end
function c87257460.filter(c)
return c:IsLevelBelow(3) and c:IsFaceup() and c:IsAbleToChangeControler()
......
......@@ -1646,3 +1646,10 @@ 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.
---@param c Card
---@param tp integer
---@return boolean
function Auxiliary.GoldenAllureQueenCondition(c,tp)
return Duel.IsPlayerAffectedByEffect(tp,95937545) and c:IsOriginalSetCard(0x3)
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