forked from github/server
Familiars and monsters should not get spells from the faction's list.
This commit is contained in:
parent
62a91f4558
commit
e4244f6282
|
@ -1749,7 +1749,9 @@ struct spellbook * unit_get_spellbook(const struct unit * u)
|
|||
if (mage->spellbook) {
|
||||
return mage->spellbook;
|
||||
}
|
||||
return faction_get_spellbook(u->faction);
|
||||
if (mage->magietyp!=M_GRAY) {
|
||||
return faction_get_spellbook(u->faction);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue