mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Fix Clangourous Soul
I broke this while trying to tidy up the code, it worked perfectly before. Also, make sure the "recoil' doesn't break Disguise.
This commit is contained in:
parent
ecbe048f96
commit
c9ae140bd1
@ -405,7 +405,7 @@ BattleScript_EffectClangorousSoul:
|
||||
attackstring
|
||||
ppreduce
|
||||
cutonethirdhpraisestats BattleScript_ButItFailed
|
||||
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
||||
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_IGNORE_DISGUISE
|
||||
attackanimation
|
||||
waitanimation
|
||||
healthbarupdate BS_ATTACKER
|
||||
|
@ -9038,7 +9038,7 @@ static void Cmd_various(void)
|
||||
{
|
||||
bool8 atLeastOneStatBoosted = FALSE;
|
||||
bool8 hasContrary = (GetBattlerAbility(gBattlerAttacker) == ABILITY_CONTRARY);
|
||||
u16 hpFraction = min(1, gBattleMons[gBattlerAttacker].maxHP / 3);
|
||||
u16 hpFraction = max(1, gBattleMons[gBattlerAttacker].maxHP / 3);
|
||||
|
||||
for (i = 1; i < NUM_STATS; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user