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) {
|
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;
|
||||||
}
|
}
|
Loading…
Reference in New Issue