mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 20:17:38 +01:00
Add Triage
This commit is contained in:
parent
0329175f06
commit
dc7be39894
@ -4746,6 +4746,26 @@ static s8 GetMovePriority(u8 battlerId)
|
|||||||
{
|
{
|
||||||
priority++;
|
priority++;
|
||||||
}
|
}
|
||||||
|
else if (GetBattlerAbility(battlerId) == ABILITY_TRIAGE)
|
||||||
|
{
|
||||||
|
switch (gBattleMoves[move].effect)
|
||||||
|
{
|
||||||
|
case EFFECT_RESTORE_HP:
|
||||||
|
case EFFECT_REST:
|
||||||
|
case EFFECT_MORNING_SUN:
|
||||||
|
case EFFECT_MOONLIGHT:
|
||||||
|
case EFFECT_SYNTHESIS:
|
||||||
|
case EFFECT_HEAL_PULSE:
|
||||||
|
case EFFECT_HEALING_WISH:
|
||||||
|
case EFFECT_SWALLOW:
|
||||||
|
case EFFECT_WISH:
|
||||||
|
case EFFECT_SOFTBOILED:
|
||||||
|
case EFFECT_ABSORB:
|
||||||
|
case EFFECT_ROOST:
|
||||||
|
priority += 3;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user