--Odion, the Firstborn local id,cod=23251018,c23251018 function cod.initial_effect(c) --Synchro Summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xd3e),aux.NonTuner(Card.IsAttribute,ATTRIBUTE_DARK),1) c:EnableReviveLimit() -- local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e1:SetTarget(cod.tg) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,0) e1:SetValue(aux.tgoval) c:RegisterEffect(e1) --Gain ATK local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_MZONE) e2:SetValue(cod.val) c:RegisterEffect(e2) end function cod.tg(e,c) return c:IsFaceup() and c:IsRace(RACE_ROCK) and (c:IsType(TYPE_FUSION) or c:IsType(TYPE_XYZ) or c:IsType(TYPE_SYNCHRO) or c:IsType(TYPE_LINK)) and c~=e:GetHandler() end function cod.val(e,c) return Duel.GetMatchingGroupCount(cod.filter,c:GetControler(),LOCATION_MZONE,0,nil)*500 end function cod.filter(c) return c:IsFaceup() and c:IsRace(RACE_ROCK) and (c:IsType(TYPE_FUSION) or c:IsType(TYPE_XYZ) or c:IsType(TYPE_SYNCHRO) or c:IsType(TYPE_LINK)) end