mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Prevent Memento and recovery together
If a Pokemon has recovery, it plans to survive in the long-term and having a move that sacrifices itself is unwanted. (This was found on probably the worst set ever seen in Random Battles: Memento / Rest / Sleep Talk / Poison Jab)
This commit is contained in:
parent
2bf7416bcc
commit
1178f275a5
|
|
@ -1077,6 +1077,9 @@ exports.BattleScripts = {
|
|||
case 'softboiled': case 'roost': case 'moonlight': case 'synthesis': case 'morningsun':
|
||||
if (hasMove['wish'] || hasMove['recover']) rejected = true;
|
||||
break;
|
||||
case 'memento':
|
||||
if (hasMove['rest'] || hasMove['painsplit'] || hasMove['wish'] || hasMove['recover'] || hasMove['moonlight'] || hasMove['synthesis'] || hasMove['morningsun']) rejected = true;
|
||||
break;
|
||||
case 'perishsong':
|
||||
if (hasMove['roar'] || hasMove['whirlwind'] || hasMove['haze']) rejected = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user