V4Victini
5a1f72f6ce
Remove outdated '-failed' message
2014-09-06 13:24:43 -04:00
V4Victini
39f17f4978
Save last request details.
...
Fixes the issue of team preview not resending the details after a player
disconnects and rejoins the battle.
2014-09-03 19:55:36 -04:00
Guangcong Luo
39082d5bbf
Switch |split order
...
`|split` order used to be p1/p2/spectator/replay. It is now
spectator/p1/p2/replay.
Since the spectator version is the default, it makes a lot more
sense to have the default in index 0 (and more importantly
prepares it for an upcoming refactor).
2014-08-25 16:05:46 -04:00
Ivo Julca
892103076b
Support pipe operator (|) in /evalbattle
2014-08-23 19:57:07 -05:00
Guangcong Luo
e295a61f23
Gen 2-4: Fix weird behavior when Pursuit KOs
2014-08-12 21:35:05 -04:00
Guangcong Luo
480b416d2d
Nicer crash reports
...
`|split` is now parsed out, which should make battle logs much easier
to read.
2014-08-12 20:42:35 -04:00
Guangcong Luo
890c0b4ebd
Gen 3: Fix Trace bug from 065e293c
2014-08-11 18:17:59 -04:00
Guangcong Luo
5ef8b245c3
Fix weird behavior on double-faint in early gens
2014-08-11 18:13:26 -04:00
Guangcong Luo
a4496af607
Comment gen 3 switch mechanics
2014-08-11 18:12:42 -04:00
Guangcong Luo
065e293c29
Gen 3: Traced Abilities don't run Start events
...
Specifically, things like Intimidate don't happen when Traced.
2014-08-11 05:48:45 -04:00
Guangcong Luo
b0a85dd33b
Remove a stray debug line
2014-08-11 05:40:30 -04:00
Guangcong Luo
85994c45d8
Fix faint-switch mechanics for gens 1-3
...
The model is now:
- Gen 1: fainting ends the turn
- Gen 2-3: fainted mon is immediately switched, and the turn continues
- Gen 4-6: fainted mon is switched at the end of the turn
2014-08-11 05:38:46 -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
Guangcong Luo
12b673bb49
Fix style errors; update gulpfile
...
I used a hack to make the multiple declaration errors go away,
so all that remained in jsHint were actual errors, which I've
now mostly fixed.
All this linting ended up uncovering one actual bug: Uproar's
message not showing. It's a very minor bug in a move no one uses,
so I'm going to fold it into this commit.
2014-08-10 18:06:44 -04:00
V4Victini
78383ae2e9
Mold Breaker ignores ability redirection
2014-08-05 00:20:28 -04:00
Ivo Julca
b85ace8d7e
Fix passing ending turns prematurely
2014-08-04 13:28:09 -05:00
Guangcong Luo
67a3776d86
Fix crash when Pursuiting fainted ally
2014-08-04 13:47:11 -04:00
The Immortal
e6ae62f6e4
Fix mega evolution mechanics
...
In Hackmons, Mega Charizard Y can mega evolve into Mega Charizard X, for example
2014-08-03 23:35:09 +04:00
Ivo Julca
e14cb84f0e
Mold Breaker nullifies the ability of dragged-in pokemon
2014-07-31 01:16:56 -05:00
V4Victini
0186a3a1c9
Add Sexytuple Effectiveness
...
Up to 64x Resists and 64x Weaknesses
2014-07-27 20:03:57 -04:00
V4Victini
2ae9d3d229
Merge pull request #920 from Slayer95/illusion
...
Remove illusion on forme change
2014-07-22 10:11:19 -04:00
Slayer95
3f567f9faa
Revert "Send source effect data to the client on pokemon.cureStatus"
...
This reverts commit 82b8a48ba4 .
2014-07-20 16:36:16 -05:00
Slayer95
7c4ffd2365
Send 'silent' attribute on swapPosition for auto-centering
...
Also refacor battle.swapPosition a bit to use more generic arguments.
2014-07-17 06:21:19 -05:00
The Immortal
4f9f48bf27
Revert "Remove redundant check in auto-centering"
...
This reverts commit 86b49322f5 .
2014-07-17 14:31:31 +04:00
Slayer95
82b8a48ba4
Send source effect data to the client on pokemon.cureStatus
2014-07-17 05:28:02 -05:00
Slayer95
86b49322f5
Remove redundant check in auto-centering
2014-07-17 05:05:18 -05:00
Slayer95
2b082a479c
Finish implementation of linked volatiles
2014-07-15 02:49:06 -05:00
Slayer95
26edd63959
Make sure that switched out pokemon get their moves cancelled
...
There are several issues alike to the one fixed in 62611b926b
2014-07-13 06:54:18 -05:00
The Immortal
0e262a40ae
Add triples center message
2014-07-13 15:45:27 +04:00
Slayer95
4c8df32744
Merge branch 'triples'
2014-07-09 22:29:18 -05:00
Slayer95
be8ab7a213
Fix player disconnection ending turns prematurely
2014-07-07 15:25:08 -05:00
Slayer95
91a5429929
Add Triples Custom Game format
2014-07-03 23:44:23 -05:00
Slayer95
dd44cf3e2a
Mummy reveals the ability the affected pokemon had
2014-06-23 17:52:27 -05:00
Slayer95
937a79489b
Items can be taken from fainting targets
2014-06-23 17:13:41 -05:00
Slayer95
a7efa2c350
Make sure that moves restricted to adjacent targets have valid targets
...
Also Helping Hand's targetting is not hard-coded anymore.
2014-06-16 17:28:30 -05:00
Slayer95
bbcf60cd71
Support leaving empty slots when switching multiple mons in
...
This happens in Doubles or Triples if, in a single turn, more pokemon faint than can switch in.
This commit introduces two changes. Namely:
- If more pokemon faint in a single turn than can switch in, those with the higher positions now can have switch flags on.
- Passing a switch is now a valid decision that gets added to battle queue with maximum priority and disables the pokemon's switch flag.
As a side effect, this also allows running the battle engine in JS strict mode.
2014-06-16 17:26:17 -05:00
Slayer95
3ddddc3333
Triples: implement autocenter
2014-06-16 17:11:54 -05:00
Slayer95
ce8dde79b7
Shifting is now a valid decision in Triples
2014-06-16 17:09:04 -05:00
Slayer95
3e1df13e8e
Remove a check from prior work on Triples
2014-06-16 17:05:57 -05:00
Guangcong Luo
136cbf8317
Correct faint order for Final Gambit
2014-06-12 13:37:40 -04:00
Slayer95
6a48ce030d
Tweaks for adjacency check methods
2014-06-12 02:02:37 -05:00
Slayer95
a103efee91
Swap: send the target position to the client
2014-06-10 14:53:43 -05:00
Guangcong Luo
9d884372b0
Properly fix faint order for Iron Barbs etc
2014-06-09 06:37:14 -04:00
The Immortal
e89eb3b0fd
Revert "Fix faint order for Iron Barbs etc"
...
This reverts commit e94940cd5f .
2014-06-09 13:43:35 +04:00
Guangcong Luo
b5d0c0b190
Merge pull request #993 from Slayer95/pursuit
...
Fix Gen 4 Pursuit
2014-06-09 03:20:03 -05:00
Guangcong Luo
e94940cd5f
Fix faint order for Iron Barbs etc
2014-06-09 04:16:35 -04:00
Guangcong Luo
9fa425bff1
Refactor selfdestruct faint order fix
2014-06-09 04:14:54 -04:00
Slayer95
8f012febb7
Fix Gen 4 Pursuit
2014-06-09 02:43:20 -05:00
V4Victini
bd959a6965
Last Pokemon to faint wins.
2014-06-08 22:52:30 -04:00
Guangcong Luo
75bb5dd186
Fix Explosion faint order
2014-06-08 22:37:38 -04:00