mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Fix bug
This commit is contained in:
parent
a14cb5c157
commit
121ffdba38
@ -7263,12 +7263,13 @@ export function initAbilities() {
|
|||||||
new Ability(AbilityId.MERCILESS, 7)
|
new Ability(AbilityId.MERCILESS, 7)
|
||||||
.attr(ConditionalCritAbAttr, (_user, target, _move) => target?.status?.effect === StatusEffect.TOXIC || target?.status?.effect === StatusEffect.POISON),
|
.attr(ConditionalCritAbAttr, (_user, target, _move) => target?.status?.effect === StatusEffect.TOXIC || target?.status?.effect === StatusEffect.POISON),
|
||||||
new Ability(AbilityId.SHIELDS_DOWN, 7, -1)
|
new Ability(AbilityId.SHIELDS_DOWN, 7, -1)
|
||||||
// Change into Meteor Form on switch-in or turn end with HP >= 50%,
|
// Change into Meteor Form on switch-in or turn end if HP >= 50%,
|
||||||
// or Core Form with HP <= 50%.
|
// or Core Form if HP <= 50%.
|
||||||
.attr(PostSummonFormChangeAbAttr, p => p.formIndex % 7 + (p.getHpRatio() <= 0.5 ? 7 : 0))
|
.attr(PostSummonFormChangeAbAttr, p => p.formIndex % 7 + (p.getHpRatio() <= 0.5 ? 7 : 0))
|
||||||
.attr(PostTurnFormChangeAbAttr, p => p.formIndex % 7 + (p.getHpRatio() <= 0.5 ? 7 : 0))
|
.attr(PostTurnFormChangeAbAttr, p => p.formIndex % 7 + (p.getHpRatio() <= 0.5 ? 7 : 0))
|
||||||
.conditionalAttr(p => p.formIndex !== 7, StatusEffectImmunityAbAttr)
|
// All variants of Meteor Form are immune to status effects & Yawn
|
||||||
.conditionalAttr(p => p.formIndex !== 7, BattlerTagImmunityAbAttr, BattlerTagType.DROWSY)
|
.conditionalAttr(p => p.formIndex < 7, StatusEffectImmunityAbAttr)
|
||||||
|
.conditionalAttr(p => p.formIndex < 7, BattlerTagImmunityAbAttr, BattlerTagType.DROWSY)
|
||||||
.attr(NoFusionAbilityAbAttr)
|
.attr(NoFusionAbilityAbAttr)
|
||||||
.attr(NoTransformAbilityAbAttr)
|
.attr(NoTransformAbilityAbAttr)
|
||||||
.uncopiable()
|
.uncopiable()
|
||||||
|
Loading…
Reference in New Issue
Block a user