Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishaan0132 committed Jan 2, 2025
2 parents 40b618d + 7c99856 commit c9d576e
Show file tree
Hide file tree
Showing 44 changed files with 1,108 additions and 1,107 deletions.
1,014 changes: 481 additions & 533 deletions config/formats.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export const Aliases: import('../sim/dex').AliasesTable = {
gen6ag: "[Gen 6] Anything Goes",
crossevo: "[Gen 9] Cross Evolution",
mayhem: "[Gen 9] Random Battle Mayhem",
omotm: "[Gen 9] Twisted Dimension",
lcotm: "[Gen 9] Mix and Mega Doubles",
omotm: "[Gen 9] Nature Swap",
lcotm: "[Gen 9] Camomons",

// mega evos
fabio: "Ampharos-Mega",
Expand Down
5 changes: 3 additions & 2 deletions data/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@ export const Conditions: import('../sim/dex-conditions').ConditionDataTable = {
futuremove: {
// this is a slot condition
name: 'futuremove',
onStart() {
onStart(target) {
this.effectState.targetSlot = target.getSlot();
this.effectState.endingTurn = (this.turn - 1) + 2;
if (this.effectState.endingTurn >= 254) {
this.hint(`In Gen 8+, Future attacks will never resolve when used on the 255th turn or later.`);
Expand All @@ -383,7 +384,7 @@ export const Conditions: import('../sim/dex-conditions').ConditionDataTable = {
onResidualOrder: 3,
onResidual(side: any) {
if (this.getOverflowedTurnCount() < this.effectState.endingTurn) return;
side.removeSlotCondition(this.getAtSlot(this.effectState.sourceSlot), 'futuremove');
side.removeSlotCondition(this.getAtSlot(this.effectState.targetSlot), 'futuremove');
},
onEnd(target) {
const data = this.effectState;
Expand Down
Loading

0 comments on commit c9d576e

Please sign in to comment.