Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Ability flags #10048

Merged
merged 27 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d7b3b84
Add AbilityFlags interface
DaWoblefet Dec 29, 2023
43e3439
Add flags to abilities data (Karthik's script)
DaWoblefet Dec 29, 2023
7060724
Convert isBreakable to its new flag
DaWoblefet Dec 29, 2023
a6fe46b
Convert most of isPermanent to its new flag
DaWoblefet Dec 29, 2023
1efb081
Convert Trace to its new flag
DaWoblefet Dec 30, 2023
683a51d
Convert Skill Swap to its new flag
DaWoblefet Dec 30, 2023
49cca41
Convert Wandering Spirit to the failskillswap flag
DaWoblefet Dec 30, 2023
4f3f50a
Update miscelleneous descriptions that depend on cantsuppress
DaWoblefet Dec 30, 2023
530ce0b
Convert Entrainment to its flag
DaWoblefet Dec 30, 2023
3b96232
Convert Receiver/PoA to its flag
DaWoblefet Dec 30, 2023
6b45e87
Convert Role Play to its flag
DaWoblefet Dec 30, 2023
cd3e706
Implement Doodle failure conditions
DaWoblefet Dec 30, 2023
82722d1
Various cleanup
DaWoblefet Dec 30, 2023
f30ee83
Breakable fixes
DaWoblefet Dec 30, 2023
f6a223d
How did I manage to do this
DaWoblefet Dec 30, 2023
ce4a8c3
Allow LightningRod to be breakable in Gen 3
DaWoblefet Dec 31, 2023
121799b
Implement notransform flag
DaWoblefet Jan 1, 2024
384192f
Tera Shell oopsie
DaWoblefet Jan 2, 2024
691e9ca
Fix more things after the rebase
DaWoblefet Jan 2, 2024
add2565
And fix Teraform Zero
DaWoblefet Jan 2, 2024
0e33282
Update data/abilities.ts
KrisXV Jan 3, 2024
89ce63e
Update data/abilities.ts
KrisXV Jan 3, 2024
0665460
Update data/abilities.ts
KrisXV Jan 3, 2024
227d906
Update data/mods/partnersincrime/abilities.ts
KrisXV Jan 3, 2024
16df475
Update data/abilities.ts
KrisXV Jan 3, 2024
8d888bb
Update data/mods/sharedpower/abilities.ts
KrisXV Jan 3, 2024
feb04b6
Update abilities.ts
KrisXV Jan 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1329,14 +1329,14 @@ export const Formats: FormatList = [
if (ally && ally.ability !== pokemon.ability) {
if (!pokemon.m.innate && !BAD_ABILITIES.includes(this.toID(ally.ability))) {
pokemon.m.innate = 'ability:' + ally.ability;
if (!ngas || ally.getAbility().isPermanent || pokemon.hasItem('Ability Shield')) {
if (!ngas || ally.getAbility().flags['cantsuppress'] || pokemon.hasItem('Ability Shield')) {
pokemon.volatiles[pokemon.m.innate] = {id: pokemon.m.innate, target: pokemon};
pokemon.m.startVolatile = true;
}
}
if (!ally.m.innate && !BAD_ABILITIES.includes(this.toID(pokemon.ability))) {
ally.m.innate = 'ability:' + pokemon.ability;
if (!ngas || pokemon.getAbility().isPermanent || ally.hasItem('Ability Shield')) {
if (!ngas || pokemon.getAbility().flags['cantsuppress'] || ally.hasItem('Ability Shield')) {
ally.volatiles[ally.m.innate] = {id: ally.m.innate, target: ally};
ally.m.startVolatile = true;
}
Expand Down
Loading