Skip to content

Commit 065e76c

Browse files
feat(abilities): add check for illuminate
1 parent 1139e1f commit 065e76c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/game/state/core/state_events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (event StatChangeEvent) Update(gameState *GameState) ([]StateEvent, []strin
311311
case core.STAT_SPEED:
312312
pokemon.RawSpeed.ChangeStat(event.Change)
313313
case core.STAT_ACCURACY:
314-
if pokemon.Ability.Name == "keen-eye" {
314+
if pokemon.Ability.Name == "keen-eye" || pokemon.Ability.Name == "illuminate" {
315315
return []StateEvent{
316316
SimpleAbilityActivationEvent(gameState, event.PlayerIndex),
317317
}, []string{fmt.Sprintf("%s's accuracy cannot be lowered", pokemon.Nickname)}

0 commit comments

Comments
 (0)