Effect.IsCostChecked
Signature
lua
Effect.IsCostChecked(Effect e) -> boolDescription
Checks whether e's cost has already been checked, which indicates whether it was copied.
Parameters
eEffect
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:656
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 252 indexed script(s).
- Search this function in the Script Explorer with
Effect.IsCostChecked.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end
if chk==0 then return e:IsCostChecked()
and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
end
function c55795155.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsCostChecked()
and Duel.IsExistingMatchingCard(c55795155.cfilter,tp,LOCATION_HAND,0,1,nil,tp) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())Accel Synchro Stardust Dragon (30983281)
Source: Scripts/c30983281.lua
lua
function c30983281.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:IsCostChecked() then return true end
local c=e:GetHandler()
local ect1=c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]