--Hybrid Titanium Dragon function c11000229.initial_effect(c) --fustion material aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x1FA),3,true) c:EnableReviveLimit() --Immune local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetValue(aux.tgoval) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetValue(c11000229.tgvalue) c:RegisterEffect(e2) --Destroy local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(11000229,0)) e3:SetCategory(CATEGORY_COUNTER) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetCode(EVENT_DAMAGE_STEP_END) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1) e3:SetCondition(c11000229.condition) e3:SetTarget(c11000229.target) e3:SetOperation(c11000229.operation) c:RegisterEffect(e3) --draw local e4=Effect.CreateEffect(c) e4:SetCategory(CATEGORY_DRAW) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e4:SetCode(EVENT_BATTLE_DESTROYING) e4:SetCondition(c11000229.drcon) e4:SetTarget(c11000229.drtg) e4:SetOperation(c11000229.drop) c:RegisterEffect(e4) end function c11000229.tgvalue(e,re,rp) return rp~=e:GetHandlerPlayer() end function c11000229.condition(e,tp,eg,ep,ev,re,r,rp) local atg=Duel.GetAttackTarget() return Duel.GetAttacker()==e:GetHandler() and atg end function c11000229.filter(c) return c:IsDestructable() and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL end function c11000229.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c11000229.filter,tp,0,LOCATION_MZONE,1,nil) end local g=Duel.GetMatchingGroup(c11000229.filter,tp,0,LOCATION_MZONE,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) end function c11000229.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(c11000229.filter,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) end function c11000229.drcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local bc=c:GetBattleTarget() return c:IsRelateToBattle() and bc:IsType(TYPE_MONSTER) end function c11000229.drtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function c11000229.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) end