Skip to content

Commit

Permalink
let attack-flies trigger next boss-fight attack sooner
Browse files Browse the repository at this point in the history
- before, had to wait for indicator to finish de-animating/terminating
- now, we check for X flies to be remaining in order to trigger the next boss fight's attack
  • Loading branch information
TheAfroOfDoom committed Feb 29, 2024
1 parent f36d384 commit 1a73212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## terminate if there are no more associated flies
## terminate indicator if there are no more associated flies
# (`function entity:group/start` has already been ran by the bullet who called this function)
scoreboard players set #attack.flies.count math.0 0
execute as @e[scores={group.id=0},tag=attack-bullet,tag=flies] run scoreboard players add #attack.flies.count math.0 1
execute if score #attack.flies.count math.0 matches 1 run scoreboard players set @s attack.clock.i -1
execute if score #attack.flies.count math.0 matches 1 run tag @s add flies_are_done

# let boss fight perform next attack if there are 5 flies remaining
execute if score #attack.flies.count math.0 matches 5 as @e[tag=boss_fight] run function entity:hostile/omega-flowey/attack/flies/indicator/terminate/boss_fight
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
execute as @e[tag=boss_fight] run function entity:hostile/omega-flowey/attack/flies/indicator/terminate/boss_fight

function animated_java:venus_fly_trap/remove/this

0 comments on commit 1a73212

Please sign in to comment.