pokerogue
pokerogue copied to clipboard
Implements Merciless
- Implements
ConditionalCritAbAttr
, which given the pokemon attack condition guarantees a critical hit. - Merciless checks for Poisoned or Intoxicated targets.
- Fixes BlockCritAbAttr not preventing guaranteed critical hits.
https://github.com/pagefaultgames/pokerogue/assets/43686802/b2e1446e-7dd1-4750-a5f4-9395ea5bc3ae
Going off of the point made above, you could even do a conditional crit attr, similar to how we use our MovePowerBoostAttr. It would be super clean, and allow any "crit if x" stuff to work the same way. Like this;
new Ability(Abilities.MERCILESS, 7)
.attr(ConditionalCritAbAttr, (user, target, move) => target.status?.effect === StatusEffect.POISON || target.status?.effect === StatusEffect.TOXIC,),
```
Nice, I do think that's the best solution