From 71d9f68b3eb10d9d195785e8885c2feb00cbf1f9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 4 Mar 2012 19:24:27 -0800 Subject: [PATCH] faction stealth is only selectively enabled in E3 do not show spell messages when no items are given (in seduce) --- res/config-e3a.xml | 2 +- src/spells/spells.c | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/res/config-e3a.xml b/res/config-e3a.xml index 7037ffd24..1c7abf823 100644 --- a/res/config-e3a.xml +++ b/res/config-e3a.xml @@ -130,7 +130,7 @@ - + diff --git a/src/spells/spells.c b/src/spells/spells.c index 7adf28b8a..091a26ff5 100644 --- a/src/spells/spells.c +++ b/src/spells/spells.c @@ -4171,12 +4171,13 @@ static int sp_seduce(castorder * co) itmp = &itm->next; } - ADDMSG(&mage->faction->msgs, msg_message("seduce_effect_0", "mage unit items", - mage, target, items)); - i_freeall(&items); - ADDMSG(&target->faction->msgs, msg_message("seduce_effect_1", "unit", - target)); - + if (items) { + ADDMSG(&mage->faction->msgs, msg_message("seduce_effect_0", "mage unit items", + mage, target, items)); + i_freeall(&items); + ADDMSG(&target->faction->msgs, msg_message("seduce_effect_1", "unit", + target)); + } return cast_level; }