Sorry to blow up the board with yet another question, but I'm hoping somebody here who has more experience than I with assembly may be able to lend a helping hand.
OK, what I'm trying to do is have a skill that inflicts damage equal to the users current HP and also throw out a random status ailment out of the ones checked, like Mantra combined with Evil Toot. I am using the Shock Skill as a base for this, and using Mantra as the 'extra effect'.
Here is the edited Mantra code:
C2/4263: 9C 14 34 STZ $3414 (Set to not modify damage)
C2/4266: 20 CB 3B JSR $3BCB (Sets a random status from attack data) [jump to Evil Toot]
C2/4269: B9 F4 3B LDA $3BF4,Y (Load HP)
C2/426C: 8D B0 11 STA $11B0 (Set damage)
C2/426F: 60 RTS
The damage part works fine, the problem I'm having is that the 'extra effect' of the Evil Toot is attacking the caster/character instead of the monster... It seems to be jumping to the Evil Toot routine and executing it, but switching the target to the caster. There seems to be no targeting being set in either of the two skills, so jumping from one skill to another shouldn't make any difference so I'm confused as to why it's not working.
Any ideas?