forked from github/server
teach familiars magic
This commit is contained in:
parent
11f3b5d727
commit
29f65277d3
|
@ -468,7 +468,7 @@ teach_cmd(unit * u, struct order * ord)
|
||||||
* Lehrer seines Gebietes */
|
* Lehrer seines Gebietes */
|
||||||
sc_mage * mage1 = get_mage(u);
|
sc_mage * mage1 = get_mage(u);
|
||||||
sc_mage * mage2 = get_mage(u2);
|
sc_mage * mage2 = get_mage(u2);
|
||||||
if (!mage2 || !mage1 || mage1->magietyp!=mage2->magietyp) {
|
if (!mage2 || !mage1 || (mage2->magietyp!=M_GRAY && mage1->magietyp!=mage2->magietyp)) {
|
||||||
if (feedback) {
|
if (feedback) {
|
||||||
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "error_different_magic", "target", u2));
|
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "error_different_magic", "target", u2));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue