mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 02:32:21 +02:00
Change AbilityGiveAttr to use setAbility
This commit is contained in:
parent
5767c7b303
commit
bdd570e415
@ -7472,10 +7472,10 @@ export class AbilityGiveAttr extends MoveEffectAttr {
|
||||
return false;
|
||||
}
|
||||
|
||||
target.summonData.ability = user.getAbility().id;
|
||||
|
||||
globalScene.queueMessage(i18next.t("moveTriggers:acquiredAbility", { pokemonName: getPokemonNameWithAffix(target), abilityName: allAbilities[user.getAbility().id].name }));
|
||||
|
||||
target.setAbility(user.getAbility());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user