mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 08:46:55 +00:00
Fix bug with types not being read correctly
This commit is contained in:
parent
dadc08d16e
commit
9ff2d3cbfe
@ -626,7 +626,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
const teraType = this.getTeraType();
|
||||
if (teraType != Type.UNKNOWN)
|
||||
types.push(teraType);
|
||||
} else {
|
||||
}
|
||||
|
||||
if (!types.length || !includeTeraType) {
|
||||
if (!ignoreOverride && this.summonData?.types)
|
||||
this.summonData.types.forEach(t => types.push(t));
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user