Merge branch 'grudgeImplementation' into grudge-patch-1

This commit is contained in:
Mumble 2024-11-05 17:12:58 -08:00 committed by GitHub
commit 94e2a51690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -2914,6 +2914,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
// set splice index here, so future scene queues happen before FaintedPhase
this.scene.setPhaseQueueSplice();
this.scene.unshiftPhase(new FaintPhase(this.scene, this.getBattlerIndex(), isOneHitKo, destinyTag, grudgeTag, source));
this.destroySubstitute();
this.lapseTag(BattlerTagType.COMMANDED);
this.resetSummonData();

View File

@ -39,7 +39,7 @@ export class FaintPhase extends PokemonPhase {
private grudgeTag?: GrudgeTag | null;
/**
* The source Pokemon that dealt fatal damage and should get KO'd by Destiny Bond, if applicable
* The source Pokemon that dealt fatal damage
*/
private source?: Pokemon;