--Lanternal Hito local cid,id=GetID() function cid.initial_effect(c) c:EnableReviveLimit() --cannot be target/battle indestructable/no battle damage local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xd2e)) e1:SetCondition(cid.tgcon) e1:SetValue(1) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e2:SetValue(aux.tgoval) c:RegisterEffect(e2) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD) e3:SetRange(LOCATION_MZONE) e3:SetTargetRange(LOCATION_MZONE,0) e3:SetCode(EFFECT_AVOID_BATTLE_DAMAGE) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetTargetRange(1,0) e3:SetValue(1) e3:SetTarget(cid.tgcon) c:RegisterEffect(e3) --return local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(id,1)) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetRange(LOCATION_MZONE) e4:SetCode(EVENT_BATTLED) e4:SetCondition(cid.retcon) e4:SetOperation(cid.retop) c:RegisterEffect(e4) --defense attack local e5=Effect.CreateEffect(c) e5:SetType(EFFECT_TYPE_FIELD) e5:SetCode(EFFECT_DEFENSE_ATTACK) e5:SetRange(LOCATION_MZONE) e5:SetTargetRange(LOCATION_MZONE,0) e5:SetTarget(cid.atktg) c:RegisterEffect(e5) end --cannot be target/battle indestructable/no battle damage function cid.tgcon(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) end --return function cid.retcon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() if a:IsControler(1-tp) then a,d=d,a end e:SetLabelObject(d) return a and d and a:IsFaceup() and a:IsSetCard(0xd2e) and a:IsRelateToBattle() and d:IsFaceup() and d:IsRelateToBattle() end function cid.retop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() if tc:IsFaceup() and tc:IsRelateToBattle() then Duel.SendtoHand(tc,nil,REASON_EFFECT) end end --defense attack function cid.atktg(e,c) return c:IsSetCard(0xd2e) end