Card.GetLeftScale
Signature
lua
Card.GetLeftScale(Card c) -> intDescription
Returns c's current left Pendulum Scale value. While c is in a Pendulum Zone, the core applies EFFECT_UPDATE_LSCALE and EFFECT_CHANGE_LSCALE modifiers. Outside a Pendulum Zone, it returns the card-data left scale.
Parameters
cCard
Returns
int- Current left Pendulum Scale value.
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3464
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 26 indexed script(s).
- Search this function in the Script Explorer with
Card.GetLeftScale.
Script Examples
Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
end
function s.pfilter(c,tp)
return c:IsType(TYPE_PENDULUM) and not c:IsCode(id) and c:GetLeftScale()==1
and not c:IsForbidden() and c:CheckUniqueOnField(tp)
endPendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
Duel.RegisterEffect(e1,tp)
local eset={e1}
local lscale=lpz:GetLeftScale()
local rscale=rpz:GetRightScale()
if lscale>rscale then lscale,rscale=rscale,lscale endD/D/D/D Super-Dimensional Sovereign Emperor Zero Paradox (97417863)
Source: Scripts/c97417863.lua
lua
local pg=Duel.GetFieldGroup(tp,LOCATION_PZONE,0)
if #pg==0 then return false end
local pval=pg:GetSum(Card.GetLeftScale)
local g=eg:Filter(c97417863.cfilter,nil,tp)
local lv=g:GetSum(Card.GetLevel)