--Nightmare Neutralizer local s,id,o=GetID() function s.initial_effect(c) c:EnableReviveLimit() aux.AddOrigBigbangType(c) aux.AddBigbangProc(c,Card.IsNeutral,2) --If this card battles a monster, neither can be destroyed by that battle. local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetTarget(s.indtg) e1:SetValue(1) c:RegisterEffect(e1) --During your opponent's Main Phase 1 or Battle Phase (Quick Effect): You can target 1 Positive or Negative monster your opponent controls; --change it to Attack Position if it is in face-up Defense Position, also it must attack this card this turn, if able. local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_POSITION) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetCountLimit(1,{id,0}) e2:SetRange(LOCATION_MZONE) e2:SetCondition(s.poscon) e2:SetTarget(s.postg) e2:SetOperation(s.posop) c:RegisterEffect(e2) --At the end of the Damage Step, if this card battled an opponent's monster: Change that opponent's monster's ATK/DEF to 0, also negate its effects, --then you can Special Summon 1 "Nightmare Token" (Illusion/DARK/Level 1/ATK ?/DEF ?) its ATK/ DEF are equal to that opponent's monster's original ATK/DEF. local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,0)) e3:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DISABLE) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetCode(EVENT_DAMAGE_STEP_END) e3:SetCondition(aux.dsercon) e3:SetTarget(s.negtg) e3:SetOperation(s.negop) c:RegisterEffect(e3) end function s.indtg(e,c) local tc=e:GetHandler() return c==tc or c==tc:GetBattleTarget() end function s.poscon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()~=tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()0 and Duel.IsPlayerCanSpecialSummonMonster(tp,177222630,0,TYPES_TOKEN_MONSTER,-2,-2,5,RACE_ILLUSION,ATTRIBUTE_DARK) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then local token=Duel.CreateToken(tp,177222630) local atk=bc:GetBaseAttack() local def=bc:GetBaseDefense() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK) e1:SetValue(atk) e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD) token:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_SET_DEFENSE) e2:SetValue(def) token:RegisterEffect(e2) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end end end