mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-01 21:22:21 +02:00
Fix in description of compound trigger
This commit is contained in:
parent
56a665d693
commit
d2f6d087a4
@ -244,7 +244,7 @@ export class SpeciesFormChangeCompoundTrigger {
|
||||
constructor(...triggers: SpeciesFormChangeTrigger[]) {
|
||||
this.triggers = triggers;
|
||||
//
|
||||
this.description = this.triggers.filter(trigger => trigger.description.length > 0).map(trigger => trigger.description).join(", ");
|
||||
this.description = this.triggers.filter(trigger => trigger?.description?.length > 0).map(trigger => trigger.description).join(", ");
|
||||
}
|
||||
|
||||
canChange(pokemon: Pokemon): boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user