forked from github/server
fix heroes must not recruit
This commit is contained in:
parent
f2434346c9
commit
b5f8be8a95
|
@ -8375,4 +8375,14 @@
|
||||||
orders for $int($turns) turns and may be leaving the game soon."</text>
|
orders for $int($turns) turns and may be leaving the game soon."</text>
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
|
<message name="error_herorecruit" section="errors">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="region" type="region"/>
|
||||||
|
<arg name="command" type="order"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Helden können nicht rekrutieren."</text>
|
||||||
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - Heroes cannot recruit."</text>
|
||||||
|
</message>
|
||||||
|
|
||||||
</messages>
|
</messages>
|
||||||
|
|
|
@ -564,6 +564,10 @@ static void recruit(unit * u, struct order *ord, request ** recruitorders)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fval(u, UFL_HERO)) {
|
||||||
|
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "error_herorecruit", ""));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (has_skill(u, SK_MAGIC)) {
|
if (has_skill(u, SK_MAGIC)) {
|
||||||
/* error158;de;{unit} in {region}: '{command}' - Magier arbeiten
|
/* error158;de;{unit} in {region}: '{command}' - Magier arbeiten
|
||||||
* grundsätzlich nur alleine! */
|
* grundsätzlich nur alleine! */
|
||||||
|
|
Loading…
Reference in New Issue