fix: remove max shield

This commit is contained in:
Renge 2022-04-27 22:48:05 -04:00
parent fa467fc3f5
commit 7f9805da0e

View File

@ -259,7 +259,6 @@ export default class PlayerController extends StateMachineAI implements BattlerA
this.bleedTimer.start();
this.damage( 2 + Math.round(this.CURRENT_HP/50) );
}
}
@ -318,7 +317,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
* @param shield amount of shield to add to player
*/
addShield(shield : number){
this.CURRENT_SHIELD = (this.CURRENT_SHIELD + shield) % this.MAX_SHIELD;
this.CURRENT_SHIELD += shield;
}
/**