Skip to content

Auxiliary.GetCappedAttack ​

Signature ​

lua
Auxiliary.GetCappedAttack(Card c) -> void

Description ​

Returns c's current ATK, capped at MAX_PARAMETER.

Parameters ​

  • c Card

Source ​

  • Utilities/utility.lua:1540

Used By ​

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

  • Detected in 2 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.GetCappedAttack.
CardIDScriptDetected Calls
Meteoroa Drytron24166324Scripts/c24166324.lua7
Meteonis Drytron22398665Scripts/c22398665.lua7

Script Examples ​

Meteoroa Drytron (24166324) ​

Source: Scripts/c24166324.lua

lua
	if chk==0 then
		local mg=Duel.GetRitualMaterialEx(tp):Filter(Card.IsRace,nil,RACE_MACHINE)
		return Duel.IsExistingMatchingCard(s.RitualUltimateFilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,s.rfilter,e,tp,mg,nil,aux.GetCappedAttack,"Greater")
	end
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)

Meteonis Drytron (22398665) ​

Source: Scripts/c22398665.lua

lua
	if chk==0 then
		local mg=Duel.GetRitualMaterialEx(tp):Filter(Card.IsRace,nil,RACE_MACHINE)
		return Duel.IsExistingMatchingCard(c22398665.RitualUltimateFilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,nil,e,tp,mg,nil,aux.GetCappedAttack,"Greater")
	end
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)