Familiars and monsters should not get spells from the faction's list.

This commit is contained in:
Enno Rehling 2012-05-26 14:50:00 -07:00
parent 62a91f4558
commit e4244f6282
1 changed files with 3 additions and 1 deletions

View File

@ -1749,7 +1749,9 @@ struct spellbook * unit_get_spellbook(const struct unit * u)
if (mage->spellbook) { if (mage->spellbook) {
return mage->spellbook; return mage->spellbook;
} }
if (mage->magietyp!=M_GRAY) {
return faction_get_spellbook(u->faction); return faction_get_spellbook(u->faction);
} }
}
return 0; return 0;
} }