mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-25 01:32:21 +02:00
Make applyPostApplyEffects work
This commit is contained in:
parent
64025954d6
commit
d6cbd9f4e7
@ -498,8 +498,8 @@ export class MoveEffectPhase extends PokemonPhase {
|
|||||||
* @param lastHit - `true` if this is the last hit in a multi-hit attack
|
* @param lastHit - `true` if this is the last hit in a multi-hit attack
|
||||||
* @returns a function intended to be passed into a `then()` call.
|
* @returns a function intended to be passed into a `then()` call.
|
||||||
*/
|
*/
|
||||||
protected applyPostApplyEffects(user: Pokemon, target: Pokemon, firstHit: boolean, lastHit: boolean): () => void {
|
protected applyPostApplyEffects(user: Pokemon, target: Pokemon, firstHit: boolean, lastHit: boolean): void {
|
||||||
return () => applyFilteredMoveAttrs((attr: MoveAttr) =>
|
applyFilteredMoveAttrs((attr: MoveAttr) =>
|
||||||
attr instanceof MoveEffectAttr
|
attr instanceof MoveEffectAttr
|
||||||
&& attr.trigger === MoveEffectTrigger.POST_APPLY
|
&& attr.trigger === MoveEffectTrigger.POST_APPLY
|
||||||
&& !attr.selfTarget
|
&& !attr.selfTarget
|
||||||
|
Loading…
Reference in New Issue
Block a user