diff options
author | athrxx | 2019-03-01 21:59:02 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:28 +0100 |
commit | 83f104491528a6a7c92cf017c53a56793fc213e0 (patch) | |
tree | caf58c9cba88dd9d79dd471a6a9a5c2224af0609 /engines/kyra/engine | |
parent | 5af15399ec1e00feab1d80fcdb65bac2b66c5499 (diff) | |
download | scummvm-rg350-83f104491528a6a7c92cf017c53a56793fc213e0.tar.gz scummvm-rg350-83f104491528a6a7c92cf017c53a56793fc213e0.tar.bz2 scummvm-rg350-83f104491528a6a7c92cf017c53a56793fc213e0.zip |
KYRA: (EOB1) - make dispel magic spell more accurate
(In EOB1 this spell is supposed to affect only one selected party member and not the whole party)
Diffstat (limited to 'engines/kyra/engine')
-rw-r--r-- | engines/kyra/engine/magic_eob.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/kyra/engine/magic_eob.cpp b/engines/kyra/engine/magic_eob.cpp index 448f7f0db1..a0e01c3f1b 100644 --- a/engines/kyra/engine/magic_eob.cpp +++ b/engines/kyra/engine/magic_eob.cpp @@ -886,7 +886,15 @@ bool EoBCoreEngine::spellCallback_end_melfsAcidArrow(void *obj) { } void EoBCoreEngine::spellCallback_start_dispelMagic() { - for (int i = 0; i < 6; i++) { + int first = 0; + int last = 5; + + if (_flags.gameID == GI_EOB1) { + _txt->printMessage(_magicStrings8[0], -1, _characters[_activeSpellCharId].name); + first = last = _activeSpellCharId; + } + + for (int i = first; i <= last; i++) { if (testCharacter(i, 1)) removeAllCharacterEffects(i); } |