Implemented Synchronoise's effect

Tested with Soak, Forest's Curse, and a variety of attacker and defender types.
This commit is contained in:
InfernoVulpix 2024-04-21 03:27:46 -04:00
parent c2136a6df1
commit 883f986ed2

View File

@ -3585,6 +3585,8 @@ export class FirstMoveCondition extends MoveCondition {
}
}
const sameTypeCondition: MoveConditionFunc = (user, target, move) => user.getTypes().some(item => target.getTypes().includes(item));
export type MoveTargetSet = {
targets: BattlerIndex[];
multiple: boolean;
@ -4961,7 +4963,7 @@ export function initMoves() {
.attr(CompareWeightPowerAttr),
new AttackMove(Moves.SYNCHRONOISE, Type.PSYCHIC, MoveCategory.SPECIAL, 120, 100, 10, -1, 0, 5)
.target(MoveTarget.ALL_NEAR_OTHERS)
.partial(),
.condition(sameTypeCondition),
new AttackMove(Moves.ELECTRO_BALL, Type.ELECTRIC, MoveCategory.SPECIAL, -1, 100, 10, -1, 0, 5)
.attr(BattleStatRatioPowerAttr, Stat.SPD)
.ballBombMove(),