If the dragonHP is lower than 0 why wouldn't it trigger the truth table then?
Think about it.
while(dragonHP > 0 || playerHP > 0);
do whatever while dragonHP is more than zero, or while playerHP is more than zero.
Oooooh. I see, stupid me.
How would i fix it so it i'd stop when ONE of those is less than 0?
while (dragonHP > 0 && playerHP > 0);