Grass types are immune to powder moves

This commit is contained in:
Flashfyre committed 2024-03-30 17:23:58 -04:00
1 parent bb185d9845
commit b85f093674
2 files changed
+12

No files matched your search

+2
View File
@@ -1044,6 +1044,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
: 1);
if (typeless)
typeMultiplier.value = 1;
if (this.getTypes(true, true).find(t => move.isTypeImmune(t)))
typeMultiplier.value = 0;
switch (moveCategory) {
case MoveCategory.PHYSICAL: