fix: percent atk bug
This commit is contained in:
parent
fa1de6b565
commit
f8c345cf5d
|
@ -560,7 +560,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
|
||||||
this.CURRENT_ATK +=buff.value;
|
this.CURRENT_ATK +=buff.value;
|
||||||
break;
|
break;
|
||||||
case BuffType.PERCENT_ATK:
|
case BuffType.PERCENT_ATK:
|
||||||
this.CURRENT_ATK *=buff.value;
|
this.CURRENT_ATK *=(1+buff.value);
|
||||||
this.CURRENT_ATK = Math.round(this.CURRENT_ATK);
|
this.CURRENT_ATK = Math.round(this.CURRENT_ATK);
|
||||||
break;
|
break;
|
||||||
case BuffType.SPEED:
|
case BuffType.SPEED:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user