mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-02 13:42:19 +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[]) {
|
constructor(...triggers: SpeciesFormChangeTrigger[]) {
|
||||||
this.triggers = triggers;
|
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 {
|
canChange(pokemon: Pokemon): boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user