Marty-D
cd9fd01d18
Fix weather-starting mechanics
...
Permanent weather from Abilities overrides current weather unless it's already permanent.
2016-09-17 10:27:48 -04:00
Taylor Everding
1a1f64fe95
Remove .js extension from requires ( #2725 )
2016-08-30 00:04:40 -05:00
Marty-D
d76a79f9d2
Fix Wonder Room
2016-08-22 17:11:39 -04:00
urkerab
51fab2d10f
Fix client-side activation of Aromatherapy and Heal Bell for all gens ( #2699 )
2016-08-17 22:35:35 -04:00
urkerab
d5b985adc5
Make Illusion wear off properly after Ability-ending effects ( #2638 )
2016-08-11 18:47:58 -04:00
Marty-D
bb0b3e064e
Fix Unnerve activation
...
Fixes #872
2016-08-06 17:54:21 -04:00
Marty-D
06567f8d95
Fix redirection issues with two-turn moves
2016-08-06 14:59:57 -04:00
Ivo Julca
060563495c
Notify cancel of battle decisions
2016-08-05 02:19:57 -05:00
Taylor Everding
f6a7c4bd30
Move IPC from battle-engine.js to simulator.js ( #2666 )
2016-08-04 00:35:59 -05:00
Marty-D
13197e86b7
Fix possible crash on the final turn in Triples
2016-07-22 16:48:24 -04:00
Marty-D
0271c09ce4
Fix Yawn's interaction with other effects
2016-07-20 14:10:35 -04:00
Marty-D
afd549fa17
Fix automatic centering in Triples
2016-07-20 11:27:46 -04:00
Marty-D
86417a7df9
Fix Ability boosting when maxed out
2016-07-09 12:17:38 -04:00
Marty-D
a99bd01cf3
Refactor boosting
...
- Boosts now show the correct boosting message (i.e. using Swords Dance
at +5 Attack will show the +1 message instead of +2).
- Boosts now show the appropriate maxed out message when a stat cannot
be raised/lowered further, instead of simply failing or failing
silently, unless the boost is an additional effect.
2016-07-06 11:28:06 -04:00
Ivo Julca
6cf6b9d3ea
Cancel: Fix revoking decisions
...
The battle processes are unexpectedly being sent `undo`
details when the cancel command is used.
2016-06-28 00:22:03 -05:00
Marty-D
3acbe0a357
Fix Transform interaction with certain Abilities
...
- Multitype and Stance Change can be overwritten by Transforming
- The above two and Illusion can be obtained by Transforming
- Fix Stance Change and Zen Mode while Transformed
2016-06-23 17:07:12 -04:00
Ivo Julca
dcd97ce62b
Fix spreading of typing information
2016-06-20 12:27:24 -05:00
Ivo Julca
ec572891a5
Fix typing information leak
2016-06-20 11:38:06 -05:00
Ivo Julca
e3c6cbe4b9
Implement partial decisions synchronization
2016-06-20 10:55:26 -05:00
Ivo Julca
59c667337b
Refactor Team Preview to support per-Pokémon decisions
2016-06-20 10:49:21 -05:00
Ivo Julca
543bbf5ccc
Refactor switching to support per-Pokémon decisions
...
- Implements `skip` choice, which acts as a placeholder in the player
choices. This is relevant to double-KOs, since in-game you are allowed
to specify switch-ins in any order.
2016-06-19 23:45:57 -05:00
Ivo Julca
8cc635923d
Restrict 9b73eae to Doubles/Triples
2016-06-19 08:40:56 -05:00
Ivo Julca
50fcd02b6d
Tighten move validation
...
The target location is checked on chooseMove(), rather than
after the decision has entered the queue.
2016-06-19 07:53:58 -05:00
Ivo Julca
3b1749eccf
Add basic support for per-Pokémon decisions
...
- Basically, support is added only for `move` requests here, and
behind a flag (`battle.supportsPartialDecision`).
- Switching is mostly supported, except for the multiple-KOs case.
- Team Preview needs a rework in order to enable this feature.
2016-06-17 12:26:56 -05:00
Ivo Julca
cc73c34cfa
Fix possible out of bounds access in chooseMove()
...
Making V8 happy
2016-06-17 12:08:39 -05:00
Ivo Julca
9b73eae8b7
Imprison should not hide targetable disabled moves
2016-06-17 10:00:48 -05:00
Ivo Julca
0e01387ba1
Debug: Fix logging of move targets
2016-06-17 08:48:35 -05:00
Ivo Julca
d530c58ff0
Test: Fix BattleSide#choosePass support
2016-06-17 08:48:30 -05:00
Ivo Julca
26cd34635c
Battles: Fix remnant issues after decisions refactor
2016-06-16 08:33:58 -05:00
Ivo Julca
6ca2233657
Fix logging of passes
2016-06-15 10:02:52 -05:00
Ivo Julca
0be37dd2ce
Split apart Battle#parseChoice into several BattleSide methods
2016-06-15 08:56:11 -05:00
urkerab
be0f9d3be2
Show ability activation when it causes an immunity ( #2555 )
...
- Also improve `trySetStatus` and `moveHit` implementations
2016-05-22 18:44:54 -04:00
urkerab
6be34c87ba
Don't pass the id of a format to Tools.mod ( #2548 )
2016-05-09 17:16:19 -07:00
Marty-D
fc86e0ef0a
Prevent confusion damage from being a critical hit
2016-05-05 23:44:58 -04:00
QuiteQuiet
63955aabd8
Add support for alternative models ( #2539 )
...
* Add aliases for alternate sprites
* Add support for alternate models for Pokemon
2016-05-04 11:20:50 -07:00
Guangcong Luo
4a995350bb
Shim Array#includes
...
This also refactors everything to use Array#includes except data
and mods, which are large enough that I'll refactor them later
probably.
2016-05-04 02:55:18 -07:00
Guangcong Luo
3f72c3757e
Endless Battle: Fix Trick detection
2016-04-30 00:36:29 -04:00
Guangcong Luo
123659c1dc
Report Return/Frustration's base power
2016-04-29 01:07:11 -07:00
Guangcong Luo
34200753cc
Support multiple types in setType
2016-04-24 13:03:03 -07:00
QuiteQuiet
9d9e601be1
Alter |move| target on every target change ( #2532 )
2016-04-23 10:27:40 -07:00
Guangcong Luo
c9cfa826ee
Endless Battle Clause: Allow Tricking Leppa
...
Trick/Switcheroo a Leppa Berry no longer makes a Pokemon instantly
stale. Instead, the Pokemon becomes stale when the Berry is eaten.
This mainly makes it so stealing a Leppa Berry from a Leppa staller
does not make you instantly win.
Acquiring a Leppa any other method still makes a Pokemon stale, so
as far as I know, this doesn't open up any new stalling methods.
2016-04-22 18:17:46 -07:00
kotarou3
952cefbad4
Minor crash guard changes ( #2470 )
...
- Remove unused crash guard comment
- Update Config.crashguard comment a bit
- Use Config.crashguard to disable it in tests
2016-04-17 02:15:17 -07:00
Kevin Lau
1c574c6c55
Critical Hit Ratio refactor: Use an event to modify crit ratios ( #2501 )
...
This allows for proper crit ratios when a Pokemon loses/gains an ability,
item, or other effect in the middle of a multi-hit attack.
2016-04-11 21:35:36 -04:00
alex-taxiera
9b66ba25d3
Fix Cheek Pouch ( #2497 )
...
* Cheek pouch triggers after berry effect
* Cheek pouch triggers on Fling, Bug Bite, and Pluck
2016-04-08 23:37:01 -04:00
Kevin Lau
715de49408
Refactor Anger Point to the Hit event handler
...
This fixes its interaction with Clear Smog because Hit handlers for
moves always activate before all other global event handlers.
Removed the Hit event from the list of events stopped by Mold Breaker
variants as there are no abilities that would be negated by it that
use that handler.
2016-03-23 20:23:42 -07:00
The Immortal
e1d3447695
Fix Primal Reversion interaction with Imposter
2016-03-24 01:46:14 +04:00
Guangcong Luo
52cc7f2e37
Remove Object.values external dependency
...
An external dependency is kind of overkill when the only
implementation we need is three lines.
This also lets us write a more performant implementation that
omits the parts irrelevant to us.
2016-03-21 10:15:55 -05:00
Ivo Julca
3a8e58c966
Revert "Forcibly replace Object.values implementation from Sugar.js"
...
This reverts commit 3cce56f as it is no longer needed.
2016-03-21 02:22:01 -05:00
Guangcong Luo
a125a3ed7b
Remove sugar-deprecated
2016-03-16 09:51:23 -05:00
Quite Quiet
79747aa8b4
Modify target sent when redirected
2016-03-15 09:21:56 +01:00