forked from github/server
sinnvollere Fehlermeldung bei nicht-existierendem farcasting-ziel
This commit is contained in:
parent
a461d06aa6
commit
73ed11b893
|
@ -1626,9 +1626,8 @@ verify_targets(castorder *co)
|
||||||
{ /* Fehlermeldung */
|
{ /* Fehlermeldung */
|
||||||
spobj->flag = TARGET_RESISTS;
|
spobj->flag = TARGET_RESISTS;
|
||||||
resists++;
|
resists++;
|
||||||
add_message(&mage->faction->msgs, new_message(mage->faction,
|
ADD_MSG(&mage->faction->msgs, msg_message("spellregionresists",
|
||||||
"spellregionresists%u:unit%r:region%s:command",
|
"unit region command", mage, mage->region, co->order));
|
||||||
mage, mage->region, co->order));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
success++;
|
success++;
|
||||||
|
@ -2447,12 +2446,12 @@ magic(void)
|
||||||
if (findparam(s, u->faction->locale) == P_LEVEL) {
|
if (findparam(s, u->faction->locale) == P_LEVEL) {
|
||||||
s = getstrtoken();
|
s = getstrtoken();
|
||||||
level = min(atoip(s), level);
|
level = min(atoip(s), level);
|
||||||
s = getstrtoken();
|
|
||||||
if (level < 1) {
|
if (level < 1) {
|
||||||
/* Fehler "Das macht wenig Sinn" */
|
/* Fehler "Das macht wenig Sinn" */
|
||||||
cmistake(u, ord, 10, MSG_MAGIC);
|
cmistake(u, ord, 10, MSG_MAGIC);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
s = getstrtoken();
|
||||||
}
|
}
|
||||||
if (findparam(s, u->faction->locale) == P_REGION) {
|
if (findparam(s, u->faction->locale) == P_REGION) {
|
||||||
t_x = (short)atoi(getstrtoken());
|
t_x = (short)atoi(getstrtoken());
|
||||||
|
@ -2460,12 +2459,13 @@ magic(void)
|
||||||
t_y = (short)atoi(getstrtoken());
|
t_y = (short)atoi(getstrtoken());
|
||||||
t_y = rel_to_abs(getplane(u->region),u->faction,t_y,1);
|
t_y = rel_to_abs(getplane(u->region),u->faction,t_y,1);
|
||||||
target_r = findregion(t_x, t_y);
|
target_r = findregion(t_x, t_y);
|
||||||
s = getstrtoken();
|
|
||||||
if (!target_r) {
|
if (!target_r) {
|
||||||
/* Fehler "Es wurde kein Zauber angegeben" */
|
/* Fehler "Die Region konnte nicht verzaubert werden" */
|
||||||
cmistake(u, ord, 172, MSG_MAGIC);
|
ADD_MSG(&mage->faction->msgs, msg_message("spellregionresists",
|
||||||
|
"unit region command", mage, mage->region, co->order));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
s = getstrtoken();
|
||||||
}
|
}
|
||||||
/* für Syntax ' REGION x y STUFE z '
|
/* für Syntax ' REGION x y STUFE z '
|
||||||
* hier nach REGION nochmal auf STUFE prüfen */
|
* hier nach REGION nochmal auf STUFE prüfen */
|
||||||
|
|
Loading…
Reference in New Issue