forked from github/server
auratransfer: fix für den fall, das zielmagier nicht gefunden wurde
Issue: 335
This commit is contained in:
parent
463bd105ae
commit
42ea90a6fc
|
@ -776,9 +776,8 @@ sp_transferaura(castorder *co)
|
||||||
unit *mage = (unit *)co->magician;
|
unit *mage = (unit *)co->magician;
|
||||||
int cast_level = co->level;
|
int cast_level = co->level;
|
||||||
spellparameter *pa = co->par;
|
spellparameter *pa = co->par;
|
||||||
unit * u = pa->param[0]->data.u;
|
unit * u;
|
||||||
sc_mage * scm_src = get_mage(mage);
|
sc_mage * scm_dst, * scm_src = get_mage(mage);
|
||||||
sc_mage * scm_dst = get_mage(u);
|
|
||||||
|
|
||||||
/* wenn kein Ziel gefunden, Zauber abbrechen */
|
/* wenn kein Ziel gefunden, Zauber abbrechen */
|
||||||
if (pa->param[0]->flag == TARGET_NOTFOUND) return 0;
|
if (pa->param[0]->flag == TARGET_NOTFOUND) return 0;
|
||||||
|
@ -789,6 +788,8 @@ sp_transferaura(castorder *co)
|
||||||
|
|
||||||
/* Wieviel Transferieren? */
|
/* Wieviel Transferieren? */
|
||||||
aura = pa->param[1]->data.i;
|
aura = pa->param[1]->data.i;
|
||||||
|
u = pa->param[0]->data.u;
|
||||||
|
scm_dst = get_mage(u);
|
||||||
|
|
||||||
if (scm_dst==NULL) {
|
if (scm_dst==NULL) {
|
||||||
/* "Zu dieser Einheit kann ich keine Aura übertragen." */
|
/* "Zu dieser Einheit kann ich keine Aura übertragen." */
|
||||||
|
|
Loading…
Reference in New Issue