mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-10-07 01:18:32 -04:00
Merge pull request #701 from ShaneMcGovernIE/fix/revive-exp-participants
This commit is contained in:
@@ -324,6 +324,11 @@ function ItemEffects.use(data, save, itemId, target, battle, moveIndex, ow)
|
||||
require("src.core.Sound").play(data, "Heal_HP")
|
||||
-- a revive takes the same .healHP -> .doneHealing route, animating up
|
||||
-- from the fainted mon's 0 HP (#252)
|
||||
-- re-add to participants so the revived mon gets its share of exp
|
||||
-- at battle end (onFaint clears the flag; revive must restore it)
|
||||
if battle and battle.participants then
|
||||
battle.participants[target] = true
|
||||
end
|
||||
return "consumed", { Strings("%s\nis revitalized!", monName(data, target)) },
|
||||
{ healedFrom = 0 }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user