Skip to content

Auxiliary.IsSelfEquip ​

Signature ​

lua
Auxiliary.IsSelfEquip(Card c, int id) -> bool

Description ​

Checks whether c has an equipped card carrying flag effect id, which marks equipment created by that card's own effect.

Parameters ​

  • c Card
  • id int

Returns ​

  • bool

Source ​

  • Utilities/utility.lua:1958

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 4 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.IsSelfEquip.
CardIDScriptDetected Calls
Allure Queen LV523756165Scripts/c23756165.lua3
Allure Queen LV387257460Scripts/c87257460.lua3
Allure Palace31322640Scripts/c31322640.lua1
Allure Queen LV750140163Scripts/c50140163.lua2

Script Examples ​

Allure Queen LV5 (23756165) ​

Source: Scripts/c23756165.lua

lua
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,FLAG_ID_ALLURE_QUEEN) and not aux.IsCanBeQuickEffect(c,tp,95937545)
end
function c23756165.eqcon2(e,tp,eg,ep,ev,re,r,rp)

Allure Queen LV3 (87257460) ​

Source: Scripts/c87257460.lua

lua
function c87257460.eqcon1(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	return not aux.IsSelfEquip(c,FLAG_ID_ALLURE_QUEEN) and not aux.IsCanBeQuickEffect(c,tp,95937545)
end
function c87257460.eqcon2(e,tp,eg,ep,ev,re,r,rp)

Allure Palace (31322640) ​

Source: Scripts/c31322640.lua

lua
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
	local c=e:GetHandler()
	if chk==0 then return c:IsAbleToGraveAsCost() and aux.IsSelfEquip(c,FLAG_ID_ALLURE_QUEEN) end
	Duel.SendtoGrave(c,REASON_COST)
end