aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorathrxx2019-02-22 15:49:28 +0100
committerathrxx2019-03-06 20:48:23 +0100
commitb5ac2203a5c75fadaa6ad78640cea65388ed4524 (patch)
tree132f23c2c63b6c2a501e1b36507cc4dc897e67f2 /engines/kyra
parent75b01d367a7dcdf74a80cbe59c434fcd7980ef8d (diff)
downloadscummvm-rg350-b5ac2203a5c75fadaa6ad78640cea65388ed4524.tar.gz
scummvm-rg350-b5ac2203a5c75fadaa6ad78640cea65388ed4524.tar.bz2
scummvm-rg350-b5ac2203a5c75fadaa6ad78640cea65388ed4524.zip
KYRA: (EOB1/Amiga) - Amiga specific stone skin spell variant
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/engine/magic_eob.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/kyra/engine/magic_eob.cpp b/engines/kyra/engine/magic_eob.cpp
index d443b85c18..814e92d1f4 100644
--- a/engines/kyra/engine/magic_eob.cpp
+++ b/engines/kyra/engine/magic_eob.cpp
@@ -997,7 +997,10 @@ bool EoBCoreEngine::spellCallback_end_iceStorm(void *obj) {
}
void EoBCoreEngine::spellCallback_start_stoneSkin() {
- _characters[_activeSpellCharId].effectsRemainder[1] = (getMageLevel(_openBookChar) >> 1) + rollDice(1, 4);
+ if (_magicStrings9[0] && _characters[_activeSpellCharId].effectsRemainder[1])
+ _txt->printMessage(_magicStrings9[0], -1, _characters[_activeSpellCharId].name);
+ else
+ _characters[_activeSpellCharId].effectsRemainder[1] = (getMageLevel(_openBookChar) >> 1) + rollDice(1, 4);
}
void EoBCoreEngine::spellCallback_start_removeCurse() {