mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
Merge branch 'grudgeImplementation' into grudge-patch-1
This commit is contained in:
commit
94e2a51690
@ -2914,6 +2914,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
// set splice index here, so future scene queues happen before FaintedPhase
|
// set splice index here, so future scene queues happen before FaintedPhase
|
||||||
this.scene.setPhaseQueueSplice();
|
this.scene.setPhaseQueueSplice();
|
||||||
this.scene.unshiftPhase(new FaintPhase(this.scene, this.getBattlerIndex(), isOneHitKo, destinyTag, grudgeTag, source));
|
this.scene.unshiftPhase(new FaintPhase(this.scene, this.getBattlerIndex(), isOneHitKo, destinyTag, grudgeTag, source));
|
||||||
|
|
||||||
this.destroySubstitute();
|
this.destroySubstitute();
|
||||||
this.lapseTag(BattlerTagType.COMMANDED);
|
this.lapseTag(BattlerTagType.COMMANDED);
|
||||||
this.resetSummonData();
|
this.resetSummonData();
|
||||||
|
@ -39,7 +39,7 @@ export class FaintPhase extends PokemonPhase {
|
|||||||
private grudgeTag?: GrudgeTag | null;
|
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;
|
private source?: Pokemon;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user