Users browsing this thread: 1 Guest(s)
ASM Requests
09-26-2014, 06:30 PM
Deeeefinitely feasible! I'm looking at it, and it looks like X should still hold the attacker number when the Runic function is called (C2/3225 calling JSR $352B), which means that this should, I think, work. (Untested! But.)
Assuming X is holding the attacker number like I think it is, basically this checks if the person casting the spell is an enemy or not, and then exits the function if it's not (just the way it would exit if the spell is not runicable).
Code:
org $C23532
JMP EnemySpellCheck
NOP
org $C2xxxx
EnemySpellCheck:
CPX #$08
BCC NotEnemySpell
STZ $EE
STZ $EF
JMP $3536
NotEnemySpell:
RTS
Assuming X is holding the attacker number like I think it is, basically this checks if the person casting the spell is an enemy or not, and then exits the function if it's not (just the way it would exit if the spell is not runicable).
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)