effect clear @s weakness
scoreboard players reset @s svm_ep.deal_damage
execute store result score @s svm_ep.deal_damage run attribute @s minecraft:generic.attack_damage get

scoreboard players remove @s svm_ep.deal_damage 1

#MOVEMENTS
execute if score @s svm_ep.style_ability_type1 matches 1 run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type1 matches 1 if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_2=true}] run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type1 matches 1 if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_3=true}] run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type1 matches 2 run scoreboard players add @s svm_ep.deal_damage 2
execute if score @s svm_ep.style_ability_type1 matches 2 if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_2=true}] run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type1 matches 2 if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_3=true}] run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type1 matches 3 run scoreboard players remove @s svm_ep.deal_damage 3
execute if score @s svm_ep.style_ability_type1 matches 4 run scoreboard players remove @s svm_ep.deal_damage 3
execute if score @s svm_ep.style_ability_type1 matches 5 run scoreboard players add @s svm_ep.deal_damage 2

execute if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_2=true}] if score @s svm_ep.style_ability_type1 matches 2 run scoreboard players add @s svm_ep.deal_damage 1
execute if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_3=true}] if score @s svm_ep.style_ability_type1 matches 2 run scoreboard players add @s svm_ep.deal_damage 1


#SLASHES
execute if score @s svm_ep.style_ability_type2 matches 1 run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type2 matches 2 run scoreboard players add @s svm_ep.deal_damage 3
execute if score @s svm_ep.style_ability_type2 matches 3 run scoreboard players add @s svm_ep.deal_damage 0
execute if score @s svm_ep.style_ability_type2 matches 4 run scoreboard players add @s svm_ep.deal_damage 4

#CHARGE
execute if score @s svm_ep.style_ability_type3 matches 2 if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_2=true}] run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type3 matches 2 if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_3=true}] run scoreboard players add @s svm_ep.deal_damage 1
execute if score @s svm_ep.style_ability_type3 matches 2 run scoreboard players operation @s svm_ep.deal_damage *= %gauntlet_charge_damage_multiplier svm_ep.world_settings
execute if score @s svm_ep.style_ability_type3 matches 2 run scoreboard players operation @s svm_ep.deal_damage /= %gauntlet_charge_damage_divisor svm_ep.world_settings







execute if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_2=true}] run scoreboard players add @s svm_ep.deal_damage 1
execute if entity @s[advancements={svm_ep:storyline/gauntlet_mastery_3=true}] run scoreboard players add @s svm_ep.deal_damage 1

scoreboard players operation @e[tag=hitby] svm_ep.deal_damage = @s svm_ep.deal_damage
scoreboard players reset @s svm_ep.deal_damage
execute as @e[tag=hitby] run function svm_ep:fighting_style/gauntlet/punch/hitby
