mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-13 11:40:38 +02:00
Partial fix for http://bugs.vcmi.eu/view.php?id=2590
This commit is contained in:
parent
b7b488b445
commit
f538aae95e
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user