1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-13 11:40:38 +02:00
This commit is contained in:
AlexVinS 2016-11-02 14:52:02 +03:00
parent b7b488b445
commit f538aae95e

View File

@ -995,17 +995,19 @@ bool CGHeroInstance::canCastThisSpell(const CSpell * spell) const
{
if(inSpellBook)
{//hero has this spell in spellbook
logGlobal->errorStream() << "Special spell " << spell->name << "in spellbook.";
logGlobal->error("Special spell %s in spellbook.", spell->name);
}
return specificBonus;
}
else if(!isAllowed)
{
if(inSpellBook)
{//hero has this spell in spellbook
logGlobal->errorStream() << "Banned spell " << spell->name << " in spellbook.";
{
//hero has this spell in spellbook
//it is normal if set in map editor, but trace it to possible debug of magic guild
logGlobal->trace("Banned spell %s in spellbook.", spell->name);
}
return specificBonus || schoolBonus || levelBonus;
return inSpellBook || specificBonus || schoolBonus || levelBonus;
}
else
{