Prev: 84B0 Up: Map Next: 84F7
84C0: ShadowForm spell.
shadow_form_spell 84C0 LD A,(computer_player_flag) Jump to shadow_form_spell_0 if player is human.
84C3 OR A
84C4 JR Z,shadow_form_spell_0
84C6 CALL routine03 Else call routine03 to get byte from unknown_table_3.
84C9 BIT 3,(HL) Jump to shadow_form_spell_0 if bit 5 zero.
84CB JR Z,shadow_form_spell_0
84CD LD A,$00 Set unknown10 variable to zero and return.
84CF LD (unknown10),A
84D2 RET
shadow_form_spell_0 84D3 CALL routine04 Call routine04 ???
84D6 CALL routine11 Display SPELL FAILS or SPELL SUCCEEDS message.
84D9 LD A,(spell_success_flag) Return if spell_success_flag is clear.
84DC OR A
84DD RET Z
84DE CALL get_wizard_object Get address of the wizard object data of the current player.
84E1 LD HL,(temp_pointer) Load address from temp_pointer into HL and add $0005.
84E4 LD DE,$0005
84E7 ADD HL,DE
84E8 LD (HL),$00 Store zero at resulting address ???
84EA LD DE,$0006 Add $0006 to address and store zero at resulting address ???
84ED ADD HL,DE
84EE LD (HL),$00
84F0 CALL routine03 Get byte from unknown_table_3.
84F3 OR $08 Set bit 3.
84F5 LD (HL),A Store result back in unknown_table_3 and return.
84F6 RET
Prev: 84B0 Up: Map Next: 84F7