I wrote
case 10:
Announcements.getInstance().announceToAll("Player: " + this.getName()+ " is on a Holy Shit!");
if (!isHero())
{
setHero(true);
Announcements.getInstance().announceToAll("Player: " + this.getName()+ " is getting Hero Status!");
}
which mean that player get hero if he isnt hero atm(i am noob dev so i dont know if i did it well)
but problem is to player lose hero if he die but if player was already hero, to dont lose it
:S my english sux
Edit: hihi i made it, my first not copyed code
i added :
if (!isHero())
{
isPermaHero = true;
after this:
quakeSystem = 0;
i added this:
if (isPermaHero)
{
setHero(false);
}
and this at beginning:
private boolean isPermaHero = false;
working well, now need to do same with skill :S gonna be hard