Commit Graph

194 Commits

Author SHA1 Message Date
Marty-D
0581a47431 Fix rampage-ending confusion message 2015-05-21 14:54:37 -04:00
Kevin Lau
0ec4ff912a Battle Engine Refactor: Add a DisableMove event
The intention for this event is to remove the move disabling code away
from ModifyPokemon and to an event that can be run a fewer number of
times. Since the disabledMoves index is used to gray-out moves that cannot
be used, and not for any other purpose, there is no need for the related
code to be run at the ModifyPokemon timing, instead working better as a
once per turn event.
2015-05-04 21:17:00 -07:00
Kevin Lau
628b870b2f Move Refactor: Moves track the type effectiveness of the move
Set up moves to track the type effectiveness of the move for purposes of
'Hit' and 'ModifyDamage' events. This fixes various glitches resulting
from Pokemon with the 'IgnoreEffectiveness' flag set for some types, and
also is a slight optimization because it removes the need to run the
'Effectiveness' event one more time to check effectiveness in the moves.
2015-04-09 01:46:22 -07:00
Kevin Lau
2e56120ad9 Move refactor: affectedByImmunities -> ignoreImmunity
While move.affectedByImmunities was always a Boolean value to denote if
the move was affected by immunities, move.ignoreImmunity can be a Boolean
value if it ignores or is affected by all type immunities, but also can
act as an object such that !!move.ignoreImmunity[type] means it ignores
immunities of that type.
2015-04-08 00:17:12 -07:00
Marty-D
53fd95e442 Past Gens: Make sure moves inherit or have flags 2015-04-04 00:04:51 -04:00
The Immortal
7e9c1030ec Remove notSubBlocked move property
Use the authentic flag instead. Also combined the Infiltrator properties
into one.
2015-04-04 01:22:21 +04:00
Marty-D
815f9d8689 Remove thawsUser move property 2015-04-03 15:39:46 -04:00
The Immortal
70c780f96a Remove isNotProtectable move property
Use flags instead.
2015-04-03 22:07:50 +04:00
The Immortal
d4a22bb1e6 Remove isContact property from moves
Use flags instead.
2015-04-03 16:59:53 +04:00
Konrad Borowski
b6e9ef0ba7 Fix code style of Gen-NEXT Genesect Pokedex. 2015-03-26 22:13:07 +01:00
Marty-D
ed074532c6 Make sure the flags object always exists 2015-03-21 14:29:07 -04:00
The Immortal
d81fdd4549 Remove isSoundBased property 2015-03-20 02:13:38 +04:00
The Immortal
ca31b6edc5 Remove isPunchAttack property 2015-03-20 01:51:55 +04:00
The Immortal
b48f593c83 NEXT: Triple Kick is now Hitmontop's signature move
Fixes #1403
2015-03-01 15:17:34 +04:00
Kevin Lau
d719f7b29f NEXT: Remove mention of Aegislash on NEXT banlist
Aegislash is already banned from OU, so there is no need to mention its
banning as one of the "differences from OU".
2015-01-30 12:01:48 -08:00
ascriptmaster
8436163b4b NEXT: Shadow Tag bug fix
The NEXT Readme says that Shadow Tag only lasts one turn, and this is
solved by applying a volatile to the Pokemon with Shadow Tag and removing
it when it attacks for the first time after switching in.

However, if the Pokemon with Shadow Tag is flinched, frozen, put to sleep,
or paralyzed, the effect of Shadow Tag will continue to later turns!

This is solved by giving Shadow Tag's BeforeMove event a higher priority
so that it can remove the volatile before flinching, and in case that
somehow doesn't trigger, give a set duration to the volatile as well.
2015-01-25 15:27:33 -08:00
Kevin Lau
0dbae30911 NEXT: Bone Club ignores immunities
Bone Club is the last, forgotten Bone attack, so we give it the same
immunity ignoring property that Bonemerang and Bone Rush have.

Updated the README to have these changes.
2015-01-23 11:56:13 -08:00
MonoHearted
9be541a04b NEXT: Readme Update 2015-01-08 16:09:10 -08:00
MonoHearted
18778e6109 NEXT: Tweaks to Swift Swim, Sand Rush, Chlorophyll
Changing Swift Swim, Sand Rush, Chlorophyll to give a 1.5x speed boost to nerf weather in NEXT.

Update abilities.js
2015-01-07 01:49:12 -08:00
Tempoanon
5296b9a13c NEXT: update move accuracies
Updated some more moves to multiples of 10 for consistency.
2014-12-24 15:24:27 -08:00
QxC4eva
3a84e97949 Remove redundant mod data 2014-12-13 07:58:28 +10:00
QxC4eva
1ac6399829 Fix typos in mod data 2014-12-13 07:54:48 +10:00
Guangcong Luo
80704c272d Merge pull request #1298 from Slayer95/disabled-maybe
Hide moves disabled by Imprison or NEXT's Telepathy
2014-12-10 03:57:30 -06:00
Ivo Julca
1d95bfbda5 Fix remaining instances of Klutz being ineffective 2014-12-04 23:19:58 -05:00
The Immortal
643a18afe0 ORAS updates
- Released Cosplay Pikachu
- Updated learnsets
- Updated NEXT
- Removed ORAS mod
- Removed hardcoded set bans that are now legal
2014-11-21 01:21:16 +04:00
Ivo Julca
f33909e969 Hide moves disabled by Imprison or NEXT's Telepathy
- Pokémon affected by Imprison -or Telepathy in NEXT- will now have a special flag 'maybeDisabled' in move requests if they are the last active pokémon.
- If a Pokémon having this flag attacks, the player will not be able to cancel their decision.
- Refactor Battle#parseChoice: Move decisions will now be parsed based on all the moves a pokémon knows after LockedMove, rather than only on validMoves. Any request to use a disabled move or a move with 0 PP will now be replied with a message in the form |callback|cant|[pokemon]|[sourceEffect]|[move], unless the pokémon has no valid moves, in which case it will use Struggle. The check for lockedMove in choice parsing is now performed as the first action after checking that the pokémon is not fainted. This prevents pokémon from Shifting to the center in Triples while being locked into a move.
- Don't report moves' being disabled to the client in requests if they are disabled due to Imprison or Telepathy. Instead, their being disabled will be reported using the mechanism described above.
2014-11-13 14:45:51 -05:00
Ivo Julca
d928b64221 Implement BattlePokemon#disableMove to support hiding information
- Changed data to use it anywhere moves get disabled.
2014-11-13 14:45:49 -05:00
NickMP
20dc263fc5 NEXT: Update Gossamer Wing
Update Gossamer Wing to provide healing to Dustox/Lilligant.
2014-11-12 12:36:26 +01:00
Ivo Julca
641651e19d Send 'trapped' flag in requests for pokémon that are known trapped
- Implement BattlePokemon#isLastActive to do the check for whether this is the last non-fainted active pokémon in a team.
- BattlePokemon#tryTrap now accepts an argument that, if true, will hide the fact that a pokémon is trapped.
- This should revert an small (annoying) change in the UI for locked moves introduced as a secondary effect in 8afc588e4.
- NEXT: Shadow Tag shouldn't activate the 'maybeTrapped' flag after the suspected Shadow Tagger has made a move.
2014-10-30 00:34:34 -05:00
ascriptmaster
859cebf490 Implement Harsh Sun, Heavy Rain, Strong Winds
Abilities might not be 100% accurate to the gameplay yet.
2014-10-27 16:10:26 -07:00
Ivo Julca
727579ff89 Revamp effectiveness calculation
- Implement BattlePokemon#runEffectiveness, accounting for battle events.
- Refactor Tools#getEffectiveness accordingly.
- Remove Inverse mod. It's now implemented using the global event 'Effectiveness', and with a few changes in the base data for hazards and Arena Trap.
- NEXT: Fix Filter and Solid Rock not accounting for the special effects of Freeze Dry and Flying Press.
2014-10-27 03:46:32 -05:00
Slayer95
fff5eadaa9 NEXT is now based of ORAS 2014-10-22 15:22:28 -05:00
ascriptmaster
44845f0cb9 Removed placeholder messages for Castform/Cherrim transformation
Added [msg] handler for client to check for and display the message.
2014-10-21 13:32:21 -07:00
Guangcong Luo
7d1e511a49 NEXT: Buff Gossamer Wing
Gossamer Wing now grants 1/16 recovery after using a status move
2014-10-12 22:14:53 -05:00
NickMP
aecc64adb5 NEXT: Fix Weather affecting Steam Eruption's Base Power
Update weather data to not alter the Base Power of Steam Eruption, similar to Scald.
2014-10-09 19:07:18 -04:00
Ivo Julca
c25e205db1 NEXT: Remove Diancie`s formats-data entry 2014-10-05 15:46:33 -05:00
QxC4eva
f8e32da2ae Remove isUnreleased from Diancie 2014-10-05 14:44:08 +10:00
小太
fe37f3b6a7 Apply jscs to the data files as well 2014-09-30 18:34:16 +10:00
NickMP
f1b8117d92 NEXT: Fix Shadow Tag
Update Shadow Tag to wear off onBeforeMove, instead of simply having a duration of 1, fixing a bug where Shadow Tag would wear off the same turn Unown switched in if it was not after having a Pokemon faint.
2014-09-13 19:02:30 -04:00
NickMP
904cb30d0e NEXT: Fix Slash, add Signature Hidden Power Unown
Update Slash to return this.chainModify, fixing a bug where it was not being boosted by Technician.
Add Hidden Power Unown.
2014-09-13 19:00:10 -04:00
NickMP
a85ec8718a NEXT: Fix Intrinsics
Update Intrinsics to be bypassed by Mold Breaker and its variants.
2014-09-13 18:58:24 -04:00
Ivo Julca
0fb4b18e66 Gulpfile: check for ES3 issues in data files
Also, remove trailing commas everywhere.
2014-09-04 14:12:07 -05:00
QxC4eva
d906865d1a Fix gennext data syntax errors 2014-09-04 23:23:48 +10:00
NickMP
b6d3bd9e42 NEXT: Fix Echoed Voice/Bide | Add Phantom Force
Update Bide to use StallMove, due to it giving it's user Endure for the duration.
Update Echoed Voice, so that the first hit can be protected against, and the second cannot. Also make both hits considered Sound moves.
Update Phantom Force to be in line with other two turn charge moves.
2014-08-24 06:51:19 -04:00
NickMP
af0772c451 NEXT: Remove Lilligant from GossamerWing's Damage Reduction
Update GossamerWing to no longer include Lilligant in the list of Pokemon who take reduced damage from Rock, Ice, or Electric type moves, as Lilligant is not a Flying type.
2014-08-24 06:47:10 -04:00
NickMP
7652a0300b NEXT: Fix Truant/Flinch/Recharging interaction
Update Truant's effect to have an onBeforeMovePriority of 99, like in the base files, to fix a small number of bugs where Slaking could still flinch on it's loafing turn, and having to recharge would interupt it as well.
2014-08-24 06:38:55 -04:00
NickMP
4ddc5a9eac NEXT: Update README
Update README with recent changes while fixing a few typos.
2014-08-24 01:48:39 -04:00
Guangcong Luo
af2026436a More style fixes and Gulpfile updates
JSHint is now a fair bit stricter, and is now correctly checking
files in `mods/`.

The code has been fixed to match the new stricter standards.

JSHint has now caught its second actual bug: Gen 5 Pinap Berry
was Ice instead of Grass.
2014-08-10 20:43:53 -04:00
Ivo Julca
6fdaab6ae8 Fixes for Skull Bash
It boosts user stats even if Power Herb activates, but only since Gen 2.
2014-07-31 15:32:15 -05:00
NickMP
ad375e4aec NEXT: Fix King's Shield/Spiky Shield Substitute interaction
Update King's Shield and Spiky Shield to not protect a Substitute, like Protect.
2014-07-26 19:10:21 -04:00