Present implementation, adds a 0 dmg override for 0 power moves. (#152)

* Implements present, adds an override in the dmg calc to make 0 power moves do 0 dmg

* present doesn't make contact

* removes console log

* only === 0
This commit is contained in:
shayebeadling authored and GitHub committed 2024-04-16 00:41:15 -04:00
1 parent e188e90d1c
commit 95aa78487f
2 files changed
+28 -1

No files matched your search

+4
View File
@@ -1299,6 +1299,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
applyMoveAttrs(ModifiedDamageAttr, source, this, move, damage);
if (power.value === 0) {
damage.value = 0;
}
console.log('damage', damage.value, move.name, power.value, sourceAtk, targetDef);
if (damage.value) {