execute as @s at @e[c=1,family=slash,type=wesl3y:reiner_damage] run function attack_on_titan/reiner/slash

tag @s[tag=reiner_dmt,scores={wg:skill_loop=..0}] remove reiner_dmt
execute at @s[tag=reiner_bayblade] run function attack_on_titan/reiner/bayblade

#Titan Armored Transform
execute at @s[scores={wg:transform=1}] positioned ~~5.5~ run camera @s set minecraft:free ease 0.1 linear pos ^^^-4 rot ~15~
tag @s[scores={wg:transform=1}] add update_character
scoreboard players set @s[scores={wg:transform=2}] wg:animes 1
scoreboard players set @s[scores={wg:transform=2}] wg:characters 4
inputpermission set @s[scores={wg:transform=1}] movement enabled
camera @s[scores={wg:transform=100}] set minecraft:free ease 0.1 linear pos ^^5^5 rot ~20~180
event entity @s[scores={wg:transform=100}] wesl3y:titan_armored
playanimation @s[scores={wg:transform=120}] animation.titan_attack.transform wesl3y
inputpermission set @s[scores={wg:transform=120}] movement disabled
camera @s[scores={wg:transform=120}] set minecraft:free ease 0.1 linear pos ^^2.5^2.5 rot ~35~180

tp @s[tag=transform] ^^^ ~ 0
scoreboard players remove @s[tag=transform] wg:transform 1