CheckDestinyBond -> CheckFaint

Its main function is fainting the opponent and ending the move effect.
Updated the comment accordingly.
This commit is contained in:
mid-kid 2018-08-17 20:16:37 +02:00
parent 79cf90ab5e
commit 50da83cb23
4 changed files with 69 additions and 67 deletions

View File

@ -20,7 +20,7 @@ BattleCommandPointers:
dw BattleCommand_ApplyDamage dw BattleCommand_ApplyDamage
dw BattleCommand_CriticalText dw BattleCommand_CriticalText
dw BattleCommand_SuperEffectiveText dw BattleCommand_SuperEffectiveText
dw BattleCommand_CheckDestinyBond dw BattleCommand_CheckFaint
dw BattleCommand_BuildOpponentRage dw BattleCommand_BuildOpponentRage
dw BattleCommand_PoisonTarget dw BattleCommand_PoisonTarget
dw BattleCommand_SleepTarget dw BattleCommand_SleepTarget

View File

@ -17,7 +17,7 @@ NormalHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -47,7 +47,7 @@ PoisonHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
poisontarget poisontarget
endmove endmove
@ -68,7 +68,7 @@ LeechHit:
criticaltext criticaltext
supereffectivetext supereffectivetext
draintarget draintarget
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -89,7 +89,7 @@ BurnHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
burntarget burntarget
endmove endmove
@ -110,7 +110,7 @@ FreezeHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
freezetarget freezetarget
endmove endmove
@ -131,7 +131,7 @@ ParalyzeHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
paralyzetarget paralyzetarget
endmove endmove
@ -152,7 +152,7 @@ Selfdestruct:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -173,7 +173,7 @@ DreamEater:
criticaltext criticaltext
supereffectivetext supereffectivetext
eatdream eatdream
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endmove endmove
@ -551,7 +551,7 @@ AttackDownHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
attackdown attackdown
statdownmessage statdownmessage
@ -573,7 +573,7 @@ DefenseDownHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
effectchance ; bug: duplicate effectchance shouldn't be here effectchance ; bug: duplicate effectchance shouldn't be here
defensedown defensedown
@ -596,7 +596,7 @@ SpeedDownHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
speeddown speeddown
statdownmessage statdownmessage
@ -618,7 +618,7 @@ SpecialAttackDownHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
specialattackdown specialattackdown
statdownmessage statdownmessage
@ -640,7 +640,7 @@ SpecialDefenseDownHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
specialdefensedown specialdefensedown
statdownmessage statdownmessage
@ -662,7 +662,7 @@ AccuracyDownHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
accuracydown accuracydown
statdownmessage statdownmessage
@ -684,7 +684,7 @@ EvasionDownHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
evasiondown evasiondown
statdownmessage statdownmessage
@ -706,7 +706,7 @@ DefenseUpHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
defenseup defenseup
statupmessage statupmessage
@ -728,7 +728,7 @@ AttackUpHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
attackup attackup
statupmessage statupmessage
@ -750,7 +750,7 @@ AllUpHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
allstatsup allstatsup
endmove endmove
@ -771,7 +771,7 @@ PayDay:
criticaltext criticaltext
supereffectivetext supereffectivetext
payday payday
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -801,7 +801,7 @@ Bide:
moveanim moveanim
bidefailtext bidefailtext
applydamage applydamage
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -824,7 +824,7 @@ Rampage:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -856,7 +856,7 @@ MultiHit:
criticaltext criticaltext
cleartext cleartext
supereffectivelooptext supereffectivelooptext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endloop endloop
raisesub raisesub
@ -883,7 +883,7 @@ PoisonMultiHit:
criticaltext criticaltext
cleartext cleartext
supereffectivelooptext supereffectivelooptext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endloop endloop
raisesub raisesub
@ -907,7 +907,7 @@ FlinchHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
flinchtarget flinchtarget
endmove endmove
@ -923,7 +923,7 @@ OHKOHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endmove endmove
@ -943,7 +943,7 @@ RecoilHit:
criticaltext criticaltext
supereffectivetext supereffectivetext
recoil recoil
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -987,7 +987,7 @@ ConfuseHit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
confusetarget confusetarget
endmove endmove
@ -1029,7 +1029,7 @@ TriAttack:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
tristatuschance tristatuschance
endmove endmove
@ -1073,7 +1073,7 @@ SkyAttack:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
flinchtarget flinchtarget
kingsrock kingsrock
@ -1102,7 +1102,7 @@ HyperBeam:
criticaltext criticaltext
supereffectivetext supereffectivetext
rechargenextturn rechargenextturn
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endmove endmove
@ -1123,7 +1123,7 @@ Rage:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1183,7 +1183,7 @@ RazorWind:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1206,7 +1206,7 @@ Fly:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1227,7 +1227,7 @@ TrapTarget:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
traptarget traptarget
endmove endmove
@ -1244,7 +1244,7 @@ StaticDamage:
moveanim moveanim
failuretext failuretext
applydamage applydamage
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1260,7 +1260,7 @@ Reversal:
failuretext failuretext
applydamage applydamage
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1273,7 +1273,7 @@ Counter:
moveanim moveanim
failuretext failuretext
applydamage applydamage
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1311,7 +1311,7 @@ Snore:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
flinchtarget flinchtarget
kingsrock kingsrock
@ -1385,7 +1385,7 @@ FalseSwipe:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1417,7 +1417,7 @@ TripleKick:
criticaltext criticaltext
cleartext cleartext
supereffectivelooptext supereffectivelooptext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kickcounter kickcounter
endloop endloop
@ -1442,7 +1442,7 @@ Thief:
criticaltext criticaltext
supereffectivetext supereffectivetext
thief thief
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1478,7 +1478,7 @@ FlameWheel:
criticaltext criticaltext
supereffectivetext supereffectivetext
defrost defrost
checkdestinybond checkfaint
buildopponentrage buildopponentrage
burntarget burntarget
endmove endmove
@ -1550,7 +1550,7 @@ Rollout:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1589,7 +1589,7 @@ FuryCutter:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1618,7 +1618,7 @@ Return:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1639,7 +1639,7 @@ Present:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1660,7 +1660,7 @@ Frustration:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1689,7 +1689,7 @@ SacredFire:
criticaltext criticaltext
supereffectivetext supereffectivetext
defrost defrost
checkdestinybond checkfaint
buildopponentrage buildopponentrage
burntarget burntarget
endmove endmove
@ -1711,7 +1711,7 @@ Magnitude:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1739,7 +1739,7 @@ Pursuit:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1760,7 +1760,7 @@ RapidSpin:
criticaltext criticaltext
supereffectivetext supereffectivetext
clearhazards clearhazards
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1801,7 +1801,7 @@ HiddenPower:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1852,7 +1852,7 @@ MirrorCoat:
moveanim moveanim
failuretext failuretext
applydamage applydamage
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -1874,7 +1874,7 @@ SkullBash:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endturn endturn
@ -1899,7 +1899,7 @@ Twister:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
flinchtarget flinchtarget
endmove endmove
@ -1921,7 +1921,7 @@ Earthquake:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endmove endmove
@ -1938,7 +1938,7 @@ FutureSight:
moveanimnosub moveanimnosub
failuretext failuretext
applydamage applydamage
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endmove endmove
@ -1958,7 +1958,7 @@ Gust:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endmove endmove
@ -1979,7 +1979,7 @@ Stomp:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
flinchtarget flinchtarget
endmove endmove
@ -2002,7 +2002,7 @@ Solarbeam:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
kingsrock kingsrock
endmove endmove
@ -2024,7 +2024,7 @@ Thunder:
applydamage applydamage
criticaltext criticaltext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
paralyzetarget paralyzetarget
endmove endmove
@ -2055,7 +2055,7 @@ BeatUp:
criticaltext criticaltext
cleartext cleartext
supereffectivetext supereffectivetext
checkdestinybond checkfaint
buildopponentrage buildopponentrage
endloop endloop
beatupfailtext beatupfailtext

View File

@ -2363,10 +2363,12 @@ BattleCommand_SuperEffectiveText:
.print .print
jp StdBattleTextBox jp StdBattleTextBox
BattleCommand_CheckDestinyBond: BattleCommand_CheckFaint:
; checkdestinybond ; checkfaint
; Faint the user if it fainted an opponent using Destiny Bond. ; Faint the opponent if its HP reached zero
; and faint the user along with it if it used Destiny Bond.
; Ends the move effect if the opponent faints.
ld hl, wEnemyMonHP ld hl, wEnemyMonHP
ld a, [hBattleTurn] ld a, [hBattleTurn]

View File

@ -21,7 +21,7 @@ ENDM
command applydamage ; 0e command applydamage ; 0e
command criticaltext ; 0f command criticaltext ; 0f
command supereffectivetext ; 10 command supereffectivetext ; 10
command checkdestinybond ; 11 command checkfaint ; 11
command buildopponentrage ; 12 command buildopponentrage ; 12
command poisontarget ; 13 command poisontarget ; 13
command sleeptarget ; 14 command sleeptarget ; 14