Fix tag source linking
parent
dff9a21a0b
commit
fa7c1684f7
|
@ -250,6 +250,10 @@ export class InfatuatedTag extends BattlerTag {
|
||||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon, ' got over\nits infatuation.'));
|
pokemon.scene.queueMessage(getPokemonMessage(pokemon, ' got over\nits infatuation.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isSourceLinked(): boolean {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
getDescriptor(): string {
|
getDescriptor(): string {
|
||||||
return 'infatuation';
|
return 'infatuation';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
export const splashMessages = [
|
export const splashMessages = [
|
||||||
'Join the Discord!',
|
'Join the Discord!',
|
||||||
'Infinite Levels!',
|
'Infinite Levels!',
|
||||||
|
'Everything Stacks!',
|
||||||
'Optional Save Scumming!',
|
'Optional Save Scumming!',
|
||||||
'35 Biomes!',
|
'35 Biomes!',
|
||||||
'Open Source!',
|
'Open Source!',
|
||||||
|
|
|
@ -1366,7 +1366,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
}
|
}
|
||||||
|
|
||||||
removeTagsBySourceId(sourceId: integer): void {
|
removeTagsBySourceId(sourceId: integer): void {
|
||||||
this.findAndRemoveTags(t => t.sourceId === sourceId);
|
this.findAndRemoveTags(t => t.isSourceLinked() && t.sourceId === sourceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
transferTagsBySourceId(sourceId: integer, newSourceId: integer): void {
|
transferTagsBySourceId(sourceId: integer, newSourceId: integer): void {
|
||||||
|
|
Loading…
Reference in New Issue