diff --git a/src/common/kernel/magic.c b/src/common/kernel/magic.c index 8debb01ed..587ab9e85 100644 --- a/src/common/kernel/magic.c +++ b/src/common/kernel/magic.c @@ -1003,17 +1003,29 @@ spellpower(region * r, unit * u, spell * sp, int cast_level, const char * cmd) /* Antimagie in der Zielregion */ c = get_curse(r->attribs, ct_find("antimagiczone")); if (curse_active(c)) { + unit * mage = c->magician; force -= curse_geteffect(c); curse_changevigour(&r->attribs, c, -cast_level); cmistake(u, findorder(u, cmd), 185, MSG_MAGIC); + if (force>0) { + ADDMSG(&mage->faction->msgs, msg_message("reduce_spell", "self mage region", mage, u, r)); + } else { + ADDMSG(&mage->faction->msgs, msg_message("block_spell", "self mage region", mage, u, r)); + } } /* Patzerfluch-Effekt: */ c = get_curse(r->attribs, ct_find("fumble")); if (curse_active(c)) { + unit * mage = c->magician; force -= curse_geteffect(c); curse_changevigour(&u->attribs, c, -1); cmistake(u, findorder(u, cmd), 185, MSG_MAGIC); + if (force>0) { + ADDMSG(&mage->faction->msgs, msg_message("reduce_spell", "self mage region", mage, u, r)); + } else { + ADDMSG(&mage->faction->msgs, msg_message("block_spell", "self mage region", mage, u, r)); + } } force = force * MagicPower(); diff --git a/src/res/messages.xml b/src/res/messages.xml index 18f51c7ff..7d274d435 100644 --- a/src/res/messages.xml +++ b/src/res/messages.xml @@ -5812,6 +5812,26 @@ "$unit($unit) in $region($region): '$order($command)' - The unit $unit($target) did not contact us." + + + + + + + "Antimagie von $unit($self) blockiert in $region($region) einen Zauber von $unit($mage)." + "In $region($region), anti-magic from $unit($self) blocks the spell of $unit($mage)." + + + + + + + + + "$unit($self) schwächt in $region($region) einen Zauber von $unit($mage) durch Antimagie ab." + "In $region($region), anti-magic from $unit($self) reduces the effect of $unit($mage)'s spell." + + @@ -5851,7 +5871,7 @@ "$unit($unit) in $region($region) bläst das Horn des Tanzes, doch niemand hier lässt sich von Stimmung anstecken." "$unit($unit) in $region($region) blows the Horn of Dancing, but nobody here gets into the mood." - + @@ -5862,7 +5882,7 @@ "$unit($unit) in $region($region): '$order($command)' - Die $ship($ship) wird jetzt schneller ihr Ziel erreichen." "$unit($unit) in $region($region): '$order($command)' - The $ship($ship) will now be faster." - + @@ -5872,7 +5892,7 @@ "$unit($unit) in $region($region): '$order($command)' - Der Magier fühlt sich durch den Trank magische gestärkt." "$unit($unit) in $region($region): '$order($command)' - The mage is magically invigorated." - + @@ -5883,7 +5903,7 @@ "$unit($unit) in $region($region): '$order($command)' - Ausser sich vor Furcht geben die Bauern dem Barden $int($money) Silber." "$unit($unit) in $region($region): '$order($command)' - Stricken with fear the peasants give the bard $int($money) silver." - +