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:
Relados 2014-04-15 18:03:03 -05:00
parent 2bf7416bcc
commit 1178f275a5

View File

@ -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;