diff --git a/src/game/boe.party.cpp b/src/game/boe.party.cpp index 6aa27207..a809d4af 100644 --- a/src/game/boe.party.cpp +++ b/src/game/boe.party.cpp @@ -2070,9 +2070,7 @@ eSpell pick_spell(short pc_num,eSkill type) { // 70 - no spell OW spell num cLed& led = dynamic_cast(castSpell[id]); led.attachKey(key); castSpell.addLabelFor(id, {static_cast(i > 25 ? toupper(key.c) : key.c)}, LABEL_LEFT, 8, true); - if(spell_index[i] == 90){ - continue; - } + // All LEDs should get the click handler and set state, because page 2 will hide them if necessary led.setState((pc_can_cast_spell(univ.party[pc_casting],cSpell::fromNum(type,on_which_spell_page == 0 ? i : spell_index[i]))) ? led_red : led_green); led.attachClickHandler(std::bind(pick_spell_select_led, _1, _2, _3, type, std::ref(dark), std::ref(former_spell)));