mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +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();
|
const teraType = this.getTeraType();
|
||||||
if (teraType != Type.UNKNOWN)
|
if (teraType != Type.UNKNOWN)
|
||||||
types.push(teraType);
|
types.push(teraType);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (!types.length || !includeTeraType) {
|
||||||
if (!ignoreOverride && this.summonData?.types)
|
if (!ignoreOverride && this.summonData?.types)
|
||||||
this.summonData.types.forEach(t => types.push(t));
|
this.summonData.types.forEach(t => types.push(t));
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user