mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Ensure abilities which are mistakenly shown are still hidden
This commit is contained in:
parent
fea2ce32cb
commit
617ff694d2
@ -5037,11 +5037,12 @@ async function applyAbAttrsInternal<TAttr extends AbAttr>(
|
||||
if (result instanceof Promise) {
|
||||
result = await result;
|
||||
}
|
||||
if (result) {
|
||||
if (abShown) {
|
||||
queueHideAbility(pokemon, passive);
|
||||
}
|
||||
|
||||
if (abShown) {
|
||||
queueHideAbility(pokemon, passive);
|
||||
}
|
||||
|
||||
if (result) {
|
||||
if (pokemon.summonData && !pokemon.summonData.abilitiesApplied.includes(ability.id)) {
|
||||
pokemon.summonData.abilitiesApplied.push(ability.id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user