mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Update Baton Pass to check isTransferrable
for BattlerTag
s
This commit is contained in:
parent
9cc410c18b
commit
13cfbabcda
@ -2439,11 +2439,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
this.summonData.battleStats[stat] = source.summonData.battleStats[stat];
|
this.summonData.battleStats[stat] = source.summonData.battleStats[stat];
|
||||||
}
|
}
|
||||||
for (const tag of source.summonData.tags) {
|
for (const tag of source.summonData.tags) {
|
||||||
|
if (!tag.isTransferrable) {
|
||||||
// bypass those can not be passed via Baton Pass
|
|
||||||
const excludeTagTypes = new Set([BattlerTagType.DROWSY, BattlerTagType.INFATUATED, BattlerTagType.FIRE_BOOST]);
|
|
||||||
|
|
||||||
if (excludeTagTypes.has(tag.tagType)) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user