Skip to content

Card.IsChainAttackable ​

Signature ​

lua
Card.IsChainAttackable(Card c, [int ac], [bool monsteronly]) -> bool

Description ​

Checks whether the current attacker can make another attack under chain-attack rules. This core binding validates c but tests the duel's current attacker. ac defaults to 2, and monsteronly requires an attack target instead of allowing a direct attack.

Parameters ​

  • c Card
  • ac int optional - default: 2
  • monsteronly bool optional - default: false

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3654

Used By ​

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

  • Detected in 45 indexed script(s).
  • Search this function in the Script Explorer with Card.IsChainAttackable.
CardIDScriptDetected Calls
Converging Wishes20007374Scripts/c20007374.lua1
All-Eyes Phantom Dragon70335319Scripts/c70335319.lua1
Favorite Hero11881272Scripts/c11881272.lua1
Altergeist Memorygant23790299Scripts/c23790299.lua1
Infernoid Attondel88301393Scripts/c88301393.lua1
D - Burst47471667Scripts/c47471667.lua1
Number C5: Chaos Chimera Dragon69757518Scripts/c69757518.lua1
Survival of the Fittest58272005Scripts/c58272005.lua1
Black Luster Soldier - Envoy of the Beginning72989439Scripts/c72989439.lua1
Starry Night, Starry Dragon90835938Scripts/c90835938.lua1
Cyber Angel Izana91668401Scripts/c91668401.lua1
Nitro Warrior18013090Scripts/c18013090.lua1
Armored Xyz73046708Scripts/c73046708.lua1
Metaphys Tyrant Dragon18743376Scripts/c18743376.lua1
DMZ Dragon98371278Scripts/c98371278.lua1
Dragocytos Corrupted Nethersoul Dragon21435914Scripts/c21435914.lua1
Superheavy Samurai General Coral78274190Scripts/c78274190.lua1
DZW - Chimera Clad6330307Scripts/c6330307.lua1
Vendread Nights76871889Scripts/c76871889.lua1
Full Armored Utopic Ray Lancer1269512Scripts/c1269512.lua1
Metamorphosed Insect Queen41456841Scripts/c41456841.lua1
Neo Blue-Eyes Ultimate Dragon56532353Scripts/c56532353.lua1
Firewall Dragon Darkfluid68934651Scripts/c68934651.lua1
White Reincarnation91434208Scripts/c91434208.lua1
...and 21 more

Script Examples ​

Converging Wishes (20007374) ​

Source: Scripts/c20007374.lua

lua
	local c=e:GetHandler()
	local ec=c:GetEquipTarget()
	if chk==0 then return ec:IsChainAttackable(0,true) end
end
function c20007374.caop(e,tp,eg,ep,ev,re,r,rp)

All-Eyes Phantom Dragon (70335319) ​

Source: Scripts/c70335319.lua

lua
	local at=Duel.GetAttacker()
	return at:IsControler(tp) and Duel.GetAttackTarget()~=nil
		and at:IsRace(RACE_DRAGON) and at:IsType(TYPE_PENDULUM) and at:IsChainAttackable(0)
end
function c70335319.atcost(e,tp,eg,ep,ev,re,r,rp,chk)

Favorite Hero (11881272) ​

Source: Scripts/c11881272.lua

lua
function c11881272.chacon(e,tp,eg,ep,ev,re,r,rp)
	local ec=e:GetHandler():GetEquipTarget()
	return Duel.GetAttacker()==ec and ec:IsRelateToBattle() and ec:IsStatus(STATUS_OPPO_BATTLE) and ec:IsChainAttackable()
end
function c11881272.chacost(e,tp,eg,ep,ev,re,r,rp,chk)