Added checks for certain tags

This commit is contained in:
frutescens 2024-09-30 15:39:18 -07:00
parent ea90f21152
commit 69f2433e8e

View File

@ -8155,6 +8155,7 @@ export function initMoves() {
.condition(failOnGravityCondition)
.condition((_user, target, _move) => ![Species.DIGLETT, Species.DUGTRIO, Species.ALOLA_DIGLETT, Species.ALOLA_DUGTRIO, Species.SANDYGAST, Species.PALOSSAND, Species.WIGLETT, Species.WUGTRIO].includes(target.species.speciesId))
.condition((_user, target, _move) => !(target.species.speciesId !== Species.GENGAR && target.getFormKey() !== "mega"))
.condition((_user, target, _move) => !(target.getTag(BattlerTagType.INGRAIN) || target.getTag(BattlerTagType.IGNORE_FLYING)))
.attr(AddBattlerTagAttr, BattlerTagType.FLYING, false, false, 3)
.attr(AddBattlerTagAttr, BattlerTagType.TELEKINESIS, false, false, 3),
new StatusMove(Moves.MAGIC_ROOM, Type.PSYCHIC, -1, 10, -1, 0, 5)