--Dustflaw Dragon function c89217831.initial_effect(c) c:EnableReviveLimit() --atk change local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(89217831,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c89217831.atkcon) e1:SetOperation(c89217831.atkop) c:RegisterEffect(e1) --Send Replacement local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(89217831,3)) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_TO_GRAVE_REDIRECT_CB) e3:SetProperty(EFFECT_FLAG_UNCOPYABLE) e3:SetCondition(c89217831.repcon) e3:SetOperation(c89217831.repop) c:RegisterEffect(e3) --Burn while CONT SPELL local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(89217831,2)) e4:SetCategory(CATEGORY_DAMAGE) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e4:SetCode(EVENT_BATTLE_DESTROYING) e4:SetRange(LOCATION_SZONE) e4:SetCondition(c89217831.bdcon) e4:SetTarget(c89217831.bdtg) e4:SetOperation(c89217831.bdop) c:RegisterEffect(e4) end function c89217831.atkcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL end function c89217831.atkop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local tc=g:GetFirst() while tc do local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetValue(0) e1:SetReset(RESET_EVENT+0x1fe0000) tc:RegisterEffect(e1) tc=g:GetNext() end end function c89217831.desop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end end function c89217831.repcon(e) local c=e:GetHandler() return c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsReason(REASON_DESTROY) end function c89217831.repop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local e1=Effect.CreateEffect(c) e1:SetCode(EFFECT_CHANGE_TYPE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetReset(RESET_EVENT+0x1fc0000) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) c:RegisterEffect(e1) end function c89217831.bdcon(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() local bc=tc:GetBattleTarget() return bc:IsReason(REASON_BATTLE) and tc:IsRelateToBattle() and tc:IsControler(tp) and tc:IsSetCard(0xff15) and tc:IsStatus(STATUS_OPPO_BATTLE) end function c89217831.bdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetPlayer(1-tp) Duel.SetTargetParam(500) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500) end function c89217831.bdop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) end