mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-07 07:59:26 +02:00
Update move.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
6f3d1b9116
commit
1b2cb1de00
@ -1308,7 +1308,7 @@ export class MoveEffectAttr extends MoveAttr {
|
||||
* @returns true if basic application of the ability attribute should be possible
|
||||
*/
|
||||
canApply(user: Pokemon, target: Pokemon, move: Move, _args?: any[]) {
|
||||
return (this.selfTarget ? user : target).hp > 0
|
||||
return !(this.selfTarget ? user : target).isFainted();
|
||||
}
|
||||
|
||||
/** Applies move effects so long as they are able based on {@linkcode canApply} */
|
||||
|
Loading…
Reference in New Issue
Block a user