Hi,
I have a curse spell, which make character decrease health for 10 seconds, what I am doing is
1、subtract spell damage from health
2、wait 10 sec
3、add spell damage to health
everything works fine, but there is a bug, if during the 10 sec I died and go to another layout the last code will not be execute, the health will never add back, so how to solve the problem, please help thanks