From 29f65277d3b448b284bdde3e12485ac48839e55d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 29 Jan 2010 03:29:18 +0000 Subject: [PATCH] teach familiars magic --- src/common/gamecode/study.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gamecode/study.c b/src/common/gamecode/study.c index 0a0673001..d006a66e2 100644 --- a/src/common/gamecode/study.c +++ b/src/common/gamecode/study.c @@ -468,7 +468,7 @@ teach_cmd(unit * u, struct order * ord) * Lehrer seines Gebietes */ sc_mage * mage1 = get_mage(u); 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) { ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "error_different_magic", "target", u2)); }