mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
XEEN: Fix Barok giving Enchant Item spell to party
This commit is contained in:
parent
c9460d1340
commit
b8d3bffc3a
@ -1154,14 +1154,16 @@ bool Party::giveTake(int takeMode, uint takeVal, int giveMode, uint giveVal, int
|
||||
ps._currentHp = 0;
|
||||
break;
|
||||
case 19: {
|
||||
// Give spell to character
|
||||
SpellsCategory category = ps.getSpellsCategory();
|
||||
assert(category != SPELLCAT_INVALID);
|
||||
|
||||
for (int idx = 0; idx < SPELLS_PER_CLASS; ++idx) {
|
||||
if (Res.SPELLS_ALLOWED[category][idx] == (int)giveVal) {
|
||||
ps._spells[idx] = true;
|
||||
intf.spellFX(&ps);
|
||||
break;
|
||||
if (category != SPELLCAT_INVALID) {
|
||||
for (int idx = 0; idx < SPELLS_PER_CLASS; ++idx) {
|
||||
if (Res.SPELLS_ALLOWED[category][idx] == (int)giveVal) {
|
||||
ps._spells[idx] = true;
|
||||
intf.spellFX(&ps);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user