effect @e[tag=trait:indomitable,scores={emotionP=0..15}] resistance 5 0 true
effect @e[tag=trait:indomitable,scores={emotionP=16..30}] resistance 5 1 true
effect @e[tag=trait:indomitable,scores={emotionP=31..50}] resistance 5 2 true

scoreboard players set @e[tag=soul:integrity,scores={ultima_dur=1..}] emotionP 0

effect @e[tag=soul:patience] slowness 10 0 true

scoreboard players set @e[l=20,lm=20,tag=soul:determination] mglstrksbck 20
scoreboard players set @e[l=19,lm=19,tag=soul:determination] mglstrksbck 19
scoreboard players set @e[l=18,lm=18,tag=soul:determination] mglstrksbck 18
scoreboard players set @e[l=17,lm=17,tag=soul:determination] mglstrksbck 17
scoreboard players set @e[l=16,lm=16,tag=soul:determination] mglstrksbck 16
scoreboard players set @e[l=15,lm=15,tag=soul:determination] mglstrksbck 15
scoreboard players set @e[l=14,lm=14,tag=soul:determination] mglstrksbck 14
scoreboard players set @e[l=13,lm=13,tag=soul:determination] mglstrksbck 13
scoreboard players set @e[l=12,lm=12,tag=soul:determination] mglstrksbck 12
scoreboard players set @e[l=11,lm=11,tag=soul:determination] mglstrksbck 11
scoreboard players set @e[l=10,lm=10,tag=soul:determination] mglstrksbck 10
scoreboard players set @e[l=9,lm=9,tag=soul:determination] mglstrksbck 9
scoreboard players set @e[l=8,lm=8,tag=soul:determination] mglstrksbck 8
scoreboard players set @e[l=7,lm=7,tag=soul:determination] mglstrksbck 7
scoreboard players set @e[l=6,lm=6,tag=soul:determination] mglstrksbck 6
scoreboard players set @e[l=5,lm=5,tag=soul:determination] mglstrksbck 5
scoreboard players set @e[l=4,lm=4,tag=soul:determination] mglstrksbck 4
scoreboard players set @e[l=3,lm=3,tag=soul:determination] mglstrksbck 3
scoreboard players set @e[l=2,lm=2,tag=soul:determination] mglstrksbck 2
scoreboard players set @e[l=1,lm=1,tag=soul:determination] mglstrksbck 1
scoreboard players set @e[l=0,lm=0,tag=soul:determination] mglstrksbck 0
scoreboard players set @e[l=21,lm=21,tag=soul:determination] mglstrksbck 21
scoreboard players set @e[l=22,lm=22,tag=soul:determination] mglstrksbck 22
scoreboard players set @e[l=23,lm=23,tag=soul:determination] mglstrksbck 23
scoreboard players set @e[l=24,lm=24,tag=soul:determination] mglstrksbck 24
scoreboard players set @e[lm=25,tag=soul:determination] mglstrksbck 25