My game is based around causing damage and when you take all HP from 1 building it will disappear and be replaced with a new/stronger one. so far i can get my heroes to cause damage but when it reaches 0 HP it just stays there and wont replace with next one.
Here is a link to my game (All images and costs are purely placeholders right now taken from previous IGM projects so dont worry if names and description make no sense)Battle Heroes.
You can use the pastebin link to look over my code.
I would really appreciate the help. This is the last obstacle for me before I can focus 100% on game content. Thanks in advance.