From a1b870fcf2905a9cf758adb37e381e22274afb4f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 12 Feb 2005 20:26:50 +0000 Subject: [PATCH] =?UTF-8?q?http://eressea.upb.de/mantis/view.php=3Fid=3D28?= =?UTF-8?q?3=20"Opfere=20Kraft"=20=C3=BCbertrug=20alle=20Aura...=20Aua.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/spell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/kernel/spell.c b/src/common/kernel/spell.c index 5afdf9a0b..7d2da34fe 100644 --- a/src/common/kernel/spell.c +++ b/src/common/kernel/spell.c @@ -6589,7 +6589,7 @@ sp_permtransfer(castorder *co) if(pa->param[0]->flag == TARGET_RESISTS) return cast_level; tu = pa->param[0]->data.u; - aura = pa->param[0]->data.i; + aura = pa->param[1]->data.i; if(!is_mage(tu)) { /* sprintf(buf, "%s in %s: 'ZAUBER %s': Einheit ist kein Magier." @@ -6598,7 +6598,7 @@ sp_permtransfer(castorder *co) return 0; } - aura = min(get_spellpoints(mage)-spellcost(mage, sp),aura); + aura = min(get_spellpoints(mage)-spellcost(mage, sp), aura); change_maxspellpoints(mage,-aura); change_spellpoints(mage,-aura);