Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SpellEffect_Attack:
- move.b (a5),d0
- jsr GetStatusEffects
- move.w d1,d3
- ori.w #STATUSEFFECT_ATTACK,d1
- jsr SetStatusEffects
- andi.w #STATUSEFFECT_ATTACK,d3
- ori.w #STATUSEFFECT_BOOST,d1
- jsr SetStatusEffects
- andi.w #STATUSEFFECT_BOOST,d3
- beq.s @WriteScriptCommands
- moveq #8,d2
- bsr.w ApplyRandomEffectiveness
- @WriteScriptCommands:
- btst #COMBATANT_BIT_ENEMY,d0
- bne.s @EnemyReaction
- executeAllyReaction #0,#0,d1,#2
- bra.s @BattleMessage
- @EnemyReaction:
- executeEnemyReaction #0,#0,d1,#2
- @BattleMessage:
- bsr.w GiveStatusEffectSpellsEXP
- jsr GetBaseATT
- mulu.w #3,d1
- lsr.l #3,d1
- displayMessage #MESSAGE_BATTLE_ATTACK_SPELL_EFFECT,d0,#0,d1
- jsr GetBaseAGI
- mulu.w #3,d1
- lsr.l #3,d1
- displayMessage #MESSAGE_BATTLE_BOOST_SPELL_AGI_INCREASE,d0,#0,d1
- jsr GetBaseDEF
- mulu.w #3,d1
- lsr.l #3,d1
- displayMessage #MESSAGE_BATTLE_BOOST_SPELL_DEF_INCREASE,d0,#0,d1
- rts
Advertisement
Add Comment
Please, Sign In to add comment