Effect.Clone
Signature
lua
Effect.Clone(Effect e) -> EffectDescription
Creates and returns a new Effect object copied from e.
Parameters
eEffect
Returns
Effect
Source
D:\Programs\GitHub\ygopro-core\libeffect.cpp:609
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 2552 indexed script(s).
- Search this function in the Script Explorer with
Effect.Clone.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
if (sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0)) and Duel.SelectYesNo(tp,aux.Stringid(id,4)) then
Duel.BreakEffect()
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
end
if #sg1>0 or (sg2~=nil and #sg2>0) then
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)