forked from github/server
Antimagiezauber geben dem Zauberer Feedback, wenn sie Wirkung zeigen.
This commit is contained in:
parent
657a7da11e
commit
503b547a9c
|
@ -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();
|
||||
|
|
|
@ -5812,6 +5812,26 @@
|
|||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - The unit $unit($target) did not contact us."</text>
|
||||
</message>
|
||||
|
||||
<message name="block_spell" section="magic">
|
||||
<type>
|
||||
<arg name="self" type="unit"/>
|
||||
<arg name="mage" type="unit"/>
|
||||
<arg name="region" type="region"/>
|
||||
</type>
|
||||
<text locale="de">"Antimagie von $unit($self) blockiert in $region($region) einen Zauber von $unit($mage)."</text>
|
||||
<text locale="en">"In $region($region), anti-magic from $unit($self) blocks the spell of $unit($mage)."</text>
|
||||
</message>
|
||||
|
||||
<message name="reduce_spell" section="magic">
|
||||
<type>
|
||||
<arg name="self" type="unit"/>
|
||||
<arg name="mage" type="unit"/>
|
||||
<arg name="region" type="region"/>
|
||||
</type>
|
||||
<text locale="de">"$unit($self) schwächt in $region($region) einen Zauber von $unit($mage) durch Antimagie ab."</text>
|
||||
<text locale="en">"In $region($region), anti-magic from $unit($self) reduces the effect of $unit($mage)'s spell."</text>
|
||||
</message>
|
||||
|
||||
<message name="hornofpeace_u_success" section="magic">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
|
|
Loading…
Reference in New Issue