1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
This commit is contained in:
AlexVinS 2016-10-11 21:25:22 +03:00
parent ef9bff9006
commit 552f28c10b

View File

@ -1036,7 +1036,7 @@ bool CGHeroInstance::canLearnSpell(const CSpell * spell) const
return false;//creature abilities can not be learned
}
if(IObjectInterface::cb->isAllowed(0, spell->id))
if(!IObjectInterface::cb->isAllowed(0, spell->id))
{
logGlobal->warn("Hero %s try to learn banned spell %s", nodeName(), spell->name);
return false;//banned spells should not be learned