Skip to content

Card.GetTextAttack ​

Signature ​

lua
Card.GetTextAttack(Card c) -> int

Description ​

Returns the ATK value recorded in c's card data. This is the printed/database value, not the current ATK. Unlike Card.GetAttack, the binding does not clamp unknown ATK to 0, except cards marked STATUS_NO_LEVEL return 0.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 109 indexed script(s).
  • Search this function in the Script Explorer with Card.GetTextAttack.
CardIDScriptDetected Calls
Destratification Dino Stratiae3841104Scripts/c3841104.lua1
Duel Link Dragon, the Duel Dragon60025883Scripts/c60025883.lua1
Meklord Astro Mekanikle63468625Scripts/c63468625.lua2
Spirit Poacher85150300Scripts/c85150300.lua1
Raidraptor - Rising Rebellion Falcon71222868Scripts/c71222868.lua2
Super Armored Robot Armed Black Iron "C"77754169Scripts/c77754169.lua2
Cynet Backdoor43839002Scripts/c43839002.lua4
Allure Queen LV523756165Scripts/c23756165.lua1
Tragic Twin Twined Jewels81143465Scripts/c81143465.lua2
Meklord Astro Dragon Triskelion4837861Scripts/c4837861.lua1
Meklord Emperor Granel4545683Scripts/c4545683.lua1
CXyz Gimmick Puppet Fanatix Machinix3685372Scripts/c3685372.lua2
Crossmind Archfiend52644170Scripts/c52644170.lua2
Blaze Cannon4059313Scripts/c4059313.lua2
Maiden of Blue Tears99176254Scripts/c99176254.lua2
Meklord Emperor Skiel31930787Scripts/c31930787.lua1
Nightmare-Eyes Restrict30138615Scripts/c30138615.lua2
Ebon Sun96029570Scripts/c96029570.lua1
Crystal Clear Wing Synchro Dragon59765225Scripts/c59765225.lua1
Meklord Emperor Wisel68140974Scripts/c68140974.lua1
Gizmek Okami, the Dreaded Deluge Dragon43218406Scripts/c43218406.lua1
Zenet Per Akh72278590Scripts/c72278590.lua1
Nibiru, the Primal Being27204311Scripts/c27204311.lua2
Loud Cloud the Storm Serpent61465001Scripts/c61465001.lua1
...and 85 more

Script Examples ​

Destratification Dino Stratiae (3841104) ​

Source: Scripts/c3841104.lua

lua
	for tc in aux.Next(g) do
		if tc:IsLinkRace(RACE_DINOSAUR) and aux.covcheck(tc) then
			local tatk=tc:GetTextAttack()
			if tatk>0 then atk=atk+tatk end
		end

Source: Scripts/c60025883.lua

lua
	local zone=bit.band(c:GetLinkedZone(tp),0x1f)
	local tc=e:GetLabelObject()
	local atk=tc:GetTextAttack()
	local def=tc:GetTextDefense()
	local lv=tc:GetOriginalLevel()

Meklord Astro Mekanikle (63468625) ​

Source: Scripts/c63468625.lua

lua
	local tc=Duel.GetFirstTarget()
	if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then
		local atk=tc:GetTextAttack()
		if atk<0 then atk=0 end
		if not Duel.Equip(tp,tc,c,false) then return end