Paste #9314: Untitled Paste

Date: 2014/09/05 18:38:27 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


on ender_dragon damaged:
        - if <player.flag[<<player.flag[DragonsSpawnplayer]>.name>]> == <player.name> {
          - if "<context.damager[DragonsSpawnplayer].as_list>" contains <context.entity> {
            - flag <context.damager> <<player.flag[DragonsSpawnplayer]>.name>:true
            }
        - if <context.damager> == <player> && "<global.flag[DragonsSpawn].as_list>" contains <context.entity> {
          - flag global "<context.entity> DragonAttacker:|:<context.damager>"
          }
          else if <context.shooter.is_player> && "<global.flag[DragonsSpawn].as_list>" contains <context.entity> {
          - flag global "<context.entity> DragonAttacker:|:<context.damager>"
          }