Group.GetSum
Signature
lua
Group.GetSum(Group g, function f, ... any) -> intDescription
Calls f for each card in g, forwards any extra arguments, and returns the sum of the integer values produced.
Parameters
gGroupffunction...any
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libgroup.cpp:926
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 147 indexed script(s).
- Search this function in the Script Explorer with
Group.GetSum.
Script Examples
Meteoroa Drytron (24166324)
Source: Scripts/c24166324.lua
lua
if greater_or_equal=="Equal" then
return function(g)
return (not aux.RGCheckAdditional or aux.RGCheckAdditional(g)) and g:GetSum(aux.GetCappedAttack)<=atk
end
elsePere-Zenet Em Heru (46273941)
Source: Scripts/c46273941.lua
lua
if not aux.dncheck(sg) then return false end
if ec then
return sg:GetSum(s.getrlv,tc)-s.getrlv(ec,tc)<=lv
else
return trueAm Duazenet (45151304)
Source: Scripts/c45151304.lua
lua
if not aux.dncheck(sg) then return false end
if ec then
return sg:GetSum(s.getrlv,tc)-s.getrlv(ec,tc)<=lv
else
return true