mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +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];
|
||||
}
|
||||
for (const tag of source.summonData.tags) {
|
||||
|
||||
// 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)) {
|
||||
if (!tag.isTransferrable) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user