Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"2.32: RM2000 + RM2003: When throwing an item to a dead character wit…
…hout the "only k.o." option, the target is still the dead person, it doesn't change, and the attack can succeed (it can still recover SP and states like Dead for example and resurrect, even if no HP will be taken if it doesn't cure Death). An item fails if "only k.o." is checked and it's thrown to an alive actor, or if it doesn't recover any HP, SP or condition." Solution: 1. Since in items the target is always valid, we take away the condition that checks medicine during death. 2. We put, in case the "ko_only" attribute is active but the target is alive, that the item misses. 3. We add that a condition to heal is only added if the character suffers that condition. Otherwise, it skips it. 4. We check if the character is dead and the medicine doesn't cure Death. If that's the case, the HP restored will be resetted to -1. 5. In case there's no HP, SP or condition, the attack fails. We also solve a few things in AlgorithmBase::Apply to ensure consistency: 1. If a character is Dead, then it doesn't restore health. 2. If a character is resurrected, then it restores the amount of HP. If it's 0, then it will restore 1.
- Loading branch information