Put new classes REPLACE enemy max health creatures even i didn't use "class: ModifyMaxHealth".
vajuvung opened this issue ยท 1 comments
Video here: https://youtu.be/4Q2vicwKir4
config of spell "pasek_zdrowia" i forgot:
pasek_zdrowia:
name: Health Bar
description: "Shows current amount of health of targeted mob/player"
passive: true
toggleable: true
variables:
remaining: 0
triggers:
- trigger: damage_dealt
actions:
cast:- class: ModifyVariable
variable: remaining
value: target_health - damage_dealt - class: BossBar
bar_progress: "remaining/max(1,target_health_max)"
bar_title: "$t punkty zdrowia (@remaining/@target_health_max)[-$damage_dealt]" - class: Delay
parameters:
delay: 1000
target: damage_target
- class: ModifyVariable