Add dynamax buffs
This commit is contained in:
1 parent
a71392f2d6
commit
049fa306b9
3 files changed
+28
-6
No files matched your search
@@ -1488,6 +1488,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
return this.isBoss();
|
||||
}
|
||||
|
||||
isMax(): boolean {
|
||||
const maxForms = [SpeciesFormKey.GIGANTAMAX, SpeciesFormKey.GIGANTAMAX_RAPID, SpeciesFormKey.GIGANTAMAX_SINGLE, SpeciesFormKey.ETERNAMAX] as string[];
|
||||
return maxForms.includes(this.getFormKey()) || maxForms.includes(this.getFusionFormKey());
|
||||
}
|
||||
|
||||
addTag(tagType: BattlerTagType, turnCount: integer = 0, sourceMove?: Moves, sourceId?: integer): boolean {
|
||||
const existingTag = this.getTag(tagType);
|
||||
if (existingTag) {
|
||||
|
||||
Reference in new issue
Block a user