Actor LegendaryShadow 
{
//Creator: Eshkere_Jason
//Sprite: LSHC
Monster
Health 1250
Height 56
Radius 17
Mass 1200
Speed 8
Bloodcolor "Blue"
Renderstyle Translucent
Alpha 0.8
Painchance "Mine", 10
Painchance "AdvancedImp", 0
Painchance "Shadow", 0
Painchance 40
Species "Imps"
Damagetype "AdvancedImp"
Damagefactor "Acid", 0.4
Damagefactor "Fire", 0.4
//No Infighting
DamageFactor "Legendary1", 0.0
DamageFactor 0.5
DamageFactor "PlasmaBall", 20
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "PDTBFG", 0.25
DamageFactor "PDTBFGTracer", 0.25
DamageFactor "PlayerDevBall", 0.125
DamageFactor "PlayerDevBall2", 0.125
DamageFactor "PlayerDTBFGRailgunSlug", 0.75
DamageFactor "PlayerDevTracer", 0.125
DamageFactor "DBFG10K2", 0.1
DamageFactor "PlayerDBFG10K2", 0.1
DamageFactor "DBFG2", 0.1
DamageFactor "PlayerDBFG2", 0.1
Damagefactor "Shadow", 0.0
Damagefactor "AdvancedImp", 0.0
Damagefactor "Catharsi15k", 0.0
Damagefactor "Catharsi10K", 0.0
Damagefactor "HellionFire", 0.0
Damagefactor "Nightshade", 0.0
DropItem "LegendaryBossLifeEssence", 200, 16
DropItem "LegendaryBossArmorBonusMax", 200
DropItem "LegendaryBossArmorBonusMax", 200
DropItem "LegendaryBossArmorBonusMax", 200
DropItem "LegendaryBossArmorBonusMax", 200
DropItem "ShadowCastOrb", 16, 1
DropItem "LegendaryArmor", 152, 1
DropItem "LegendarySphere", 256, 1
DropItem "LegendaryRune", 128, 1
DropItem "Legendary Plasmatic Rifle" 195 1
SeeSound "Poe/Sight"
ActiveSound "Poe/active"
PainSound "Poe/pain"
DeathSound "Poe/death"
Obituary "%o was devastated by a Legendary Shadow."
Tag "\c[z3]Legendary Shadow\c-"
var int user_music;
+FLOORCLIP
+NOTARGET
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+THRUSPECIES
+DONTHARMSPECIES
States
{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("DisableLegPhase") == 1, "Remove")
  Idle:
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC A 10 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("DoomImp",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,6776,9)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,0)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_Jump(46,"Evade","Rush")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC BB 3 A_Chase
	TNT1 A 0 A_SpawnItem("HumanishStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC CC 3 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC DD 3 A_Chase
	TNT1 A 0 A_SpawnItem("HumanishStep",0,0,0,0)
	TNT1 A 0 A_Jump(46,"Phase")	
    Loop
  Rush:
	LSHC A 1 A_Chase
	LSHC A 0 A_Chase
	LSHC A 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC B 1 A_Chase
	LSHC A 0 A_Chase
	LSHC B 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC C 1 A_Chase
	LSHC A 0 A_Chase
	LSHC C 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC D 1 A_Chase
	LSHC A 0 A_Chase
	LSHC D 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC A 1 A_Chase
	LSHC A 0 A_Chase
	LSHC A 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC B 1 A_Chase
	LSHC A 0 A_Chase
	LSHC B 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC C 1 A_Chase
	LSHC A 0 A_Chase
	LSHC C 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC D 1 A_Chase
	LSHC A 0 A_Chase
	LSHC D 1 A_Chase
	LSHC A 0 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(48,"See")
	Loop
  Evade:
	TNT1 A 0 A_Jump(128,7)
	TNT1 A 0 ThrustThing(Angle*256/360+64,16,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC AA 3 A_Chase
	TNT1 A 0 A_Stop
	Goto See
	TNT1 A 0 ThrustThing(Angle*256/360+192,16,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LSHC AA 3 A_Chase
	TNT1 A 0 A_Stop
	Goto See
  Phased:
	LSHC AABBCCDDAABBCCDD 1 A_ExtChase(0,0)
	LSHC AABBCCDDAABBCCDDAABBCCDDAABBCCDD 1 A_Chase
	TNT1 A 0 A_Jump(24,"UnPhase","PhasedRun")
	Goto Phased+32
  Melee:
	LSHC EF 5 A_FaceTarget
	LSHC G 5 A_MeleeAttack
	LSHC FE 5 A_FaceTarget	
    Goto See
  Missile:
	TNT1 A 0 A_Jump(128,"FastMissile")
	TNT1 A 0 A_Jump(64,"Surprise","Laser","Lunge")
	TNT1 A 0 A_PlaySound("LSHCseImp/attack",7)
	LSHC EF 6 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FE 4
	LSHC F 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	TNT1 A 0 ThrustThing(Angle*256/360+random(64,192),16,0,0)
	LSHC FEF 4
	TNT1 A 0 A_Stop
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FE 4
	LSHC F 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	TNT1 A 0 ThrustThing(Angle*256/360+random(64,192),16,0,0)
	LSHC FEF 4
	TNT1 A 0 A_Stop
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FE 4
	LSHC F 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FEF 3
	TNT1 A 0 A_Stop
	Goto See
  FastMissile:
	TNT1 A 0 A_PlaySound("LSHCseImp/attack",7)
	LSHC EF 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 3 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FE 2
	LSHC F 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 3 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	TNT1 A 0 ThrustThing(Angle*256/360+random(64,192),32,0,0)
	LSHC FEF 2
	TNT1 A 0 A_Stop
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 3 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FE 2
	LSHC F 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 3 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	TNT1 A 0 ThrustThing(Angle*256/360+random(64,192),32,0,0)
	LSHC FEF 2
	TNT1 A 0 A_Stop
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 3 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FE 2
	LSHC F 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 3 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FEF 3
	TNT1 A 0 A_Stop
	Goto See
  Laser:
	TNT1 A 0 A_PlaySound("LSHCseImp/attack",7)
	LSHC EF 6 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	LSHC G 4 Bright A_CustomMissile("LegPhaseLaser", 32, 0, 0)
	TNT1 A 0 A_Facetarget
	TNT1 A 0 ThrustThing(Angle*256/360+random(64,192),32,0,0)
	LSHC F 6
	TNT1 A 0 A_MonsterRefire(64,"See")
	TNT1 A 0 A_Jump(100,"See")
	Goto Laser+1
  Surprise:
	TNT1 A 0 A_PlaySound("phaseimp/teleport")
	LSHC E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.55)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.35)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	Goto SurprisePhased
  SurprisePhased:
	LSHC A 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC A 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC B 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC B 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC C 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC C 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC D 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC D 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	TNT1 A 0 A_JumpIfCloser(200,"SurpriseUnphase")
	TNT1 A 0 A_Jump(8,"Unphase")
	Loop
  SurpriseUnphase:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_PlaySound("LSHCseImp/Sight",7)
	LSHC EF 6 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	LSHC FE 4
	LSHC F 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("imp/attack")
	LSHC G 5 Bright A_CustomMissile("LegImpSeekBall", 32, 0, 0)
	TNT1 A 0 A_Jump(128,"PhaseRun")
	Goto See
  Phase:
	TNT1 A 0 A_PlaySound("phaseimp/teleport")
	LSHC E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.55)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.35)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	//TNT1 AA 0 A_SpawnItemEx("FakeLegendaryPhaseImp",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION | SXF_TRANSFERPOINTERS)
	Goto Phased
  UnPhase:
	TNT1 A 0 A_PlaySound("phaseimp/teleport")
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.35)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.55)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SetTranslucent(1)
	LSHC E 2 A_FaceTarget	
    Goto See
  Pain:
	TNT1 A 0 A_Jump(32,"PhaseRun")
	LSHC H 2
	LSHC H 2 A_Pain
	Goto See
  PhaseRun:
	TNT1 A 0 A_UnSetShootable
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,1)
	TNT1 A 0 A_PlaySound("phaseimp/teleport")
	LSHC E 2 A_FaceTarget
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.55)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.35)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	Goto PhasedRun
  PhasedRun:
	LSHC A 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC A 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC B 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC B 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC C 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC C 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC D 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC D 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC A 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC A 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC B 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC B 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC C 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC C 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC D 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	LSHC D 1 A_ExtChase(0,0)
	LSHC A 0 A_ExtChase(0,0)
	TNT1 A 0 A_Jump(64,"UnPhaseRun")
	Loop
  UnPhaseRun:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_ChangeFlag(FRIGHTENED,0)
	TNT1 A 0 A_PlaySound("phaseimp/teleport")
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.35)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.55)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LSHC E 1 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SetTranslucent(1)
	LSHC E 2 A_FaceTarget	
    Goto See
  Lunge:
    TNT1 A 0 A_Jump(64,"Laser")
	TNT1 A 0 A_PlaySound("LegFiend/Melee")
	LSHC EF 7 Bright A_FaceTarget
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	TNT1 A 0 ThrustThingZ(0,20,0,1)
    LSHC F 2 Bright A_Recoil(-26)
	LSHC F 3 Bright A_CustomMissile("LFLunge",18,0,0,CMF_AIMDIRECTION)
	LSHC G 6 Bright
	LSHC G 2 Bright A_ScaleVelocity(0.2)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	LSHC G 1 Bright A_ScaleVelocity(0)
	Goto See
Death:
	LSHC H 30 A_Scream
	TNT1 A 0 A_PlaySound("DoomShadowDeathXPL",CHAN_AUTO,1.0,0)
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))  
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_PlaySound("DoomShadowDeathXPL",CHAN_AUTO,1.0,0)
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))  
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_PlaySound("DoomShadowDeathXPL",CHAN_AUTO,1.0,0)
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))  
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_PlaySound("DoomShadowDeathXPL",CHAN_AUTO,1.0,0)
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))  
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_PlaySound("DoomShadowDeathXPL",CHAN_AUTO,1.0,0)
	LSHC HH 1 Bright A_CustomMissile("Kaboom12",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))  
	LSHC HH 1 Bright A_CustomMissile("Kaboom12",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 AA 0 A_CustomMissile("Kaboom12",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 AA 0 A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))  
	TNT1 AA 0 A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 AA 0 A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	LSHC HH 1 Bright A_CustomMissile("Kaboom10",Random(10,50),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_PlaySound("DoomWraithSpawn",CHAN_AUTO,1.0,0)
	TNT1 A 0 A_PlaySound("SoulRazeLaugh3",CHAN_AUTO,1.0,0)
	TNT1 AA 0 A_SpawnItemEx("GreenGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 AA 0 A_SpawnItemEx("BlackGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("SmokeFX",Random(30,60),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 AAAA 0 A_CustomMissile("BigRedBloodCloud",Random(30,60),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 AAAAAA 0 A_CustomMissile("RedBloodCloud",Random(30,60),0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,0,CMF_AIMDIRECTION | CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,45,CMF_AIMDIRECTION | CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,-45,CMF_AIMDIRECTION | CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,90,CMF_AIMDIRECTION | CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,-90,CMF_AIMDIRECTION |CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,135,CMF_AIMDIRECTION | CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,-135,CMF_AIMDIRECTION | CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("DoomWraith",35,0,180,CMF_AIMDIRECTION | CMF_TRACKOWNER)
	LSHC N 4 Bright A_Fall
	LSHC MOPQR 4 Bright
	LSHC S 4 Bright
	TNT1 A 0 A_KillChildren
	LSHC T 525
	TNT1 A 0 A_RemoveChildren
	LSHC T 5 A_FadeOut(0.1,1)
	Wait
  }
}