Conditions:
  - hastag{t=skillnow} false
  - hastag{t=WentToSecondLevel} true
  - hastag{t=WentToSecondLevelTrue} true
  - hastag{t=usedLastAttack} false
  Skills:
  - skill{s=DemonAddSkillNow} @self
  - addtag{t=protect} @self
  - addtag{t=usedLastAttack} @self
  - setAI{ai=false} @self
  - state{s=scream;speed=0.3} @self
  - sound{s=entity.ender_dragon.growl;v=1;p=0.5} @PIR{r=200}
  - delay 120
  - setAI{ai=true} @self
  - effect:bloodyScreen{d=10} @PIR{r=200}
  - sound{s=item.trident.thunder;v=1;pitch=2} @playersinradius{r=200}
  - sound{s=block.anvil.place;v=0.2;pitch=2} @playersinradius{r=200}
  - delay 30
  - effect:bloodyScreen{d=10} @PIR{r=200}
  - sound{s=item.trident.thunder;v=1;pitch=2} @playersinradius{r=200}
  - sound{s=block.anvil.place;v=0.2;pitch=2} @playersinradius{r=200}
  - delay 30
  - effect:bloodyScreen{d=10} @PIR{r=200}
  - sound{s=item.trident.thunder;v=1;pitch=2} @playersinradius{r=200}
  - sound{s=block.anvil.place;v=0.2;pitch=2} @playersinradius{r=200}
  - delay 30
  - summon{mob=DemonLastAttackMob;r=7;yr=1;repeat=53;repeatInterval=8} @PIR{r=200;sort=RANDOM;limit=3}
  - delay 150
  - effect:bloodyScreen{d=10} @PIR{r=200}
  - sound{s=item.trident.thunder;v=1;pitch=2} @playersinradius{r=200}
  - sound{s=block.anvil.place;v=0.2;pitch=2} @playersinradius{r=200}
  - delay 30
  - effect:bloodyScreen{d=10} @PIR{r=200}
  - sound{s=item.trident.thunder;v=1;pitch=2} @playersinradius{r=200}
  - sound{s=block.anvil.place;v=0.2;pitch=2} @playersinradius{r=200}
  - delay 30
  - effect:bloodyScreen{d=10} @PIR{r=200}
  - sound{s=item.trident.thunder;v=1;pitch=2} @playersinradius{r=200}
  - sound{s=block.anvil.place;v=0.2;pitch=2} @playersinradius{r=200}
  - delay 30
  - summon{mob=DemonLastAttackMobSecond;r=9;yr=1;repeat=38;repeatInterval=6} @PIR{r=200;sort=RANDOM;limit=2}
  - delay 228
  - removetag{t=protect} @self
  - setAI{ai=true} @self
  - skill{s=DemonRemoveSkillNow} @self