(hp: number)
| 588 | } |
| 589 | |
| 590 | public setHp(hp: number): void{ |
| 591 | // BUGS |
| 592 | if(Bugs.getQuestBugLevel() >= 2) |
| 593 | hp *= Random.between(1, 5); |
| 594 | |
| 595 | this.hp = hp; |
| 596 | if(this.hp > this.maxHp) this.hp = this.maxHp; |
| 597 | if(this.hp < 0) this.hp = 0; |
| 598 | this.tryToUpdateHealthBar(); |
| 599 | } |
| 600 | |
| 601 | public setIsASpell(isASpell: boolean): void{ |
| 602 | this.isASpell = isASpell; |
no test coverage detected