AlexVinS 9 년 전
부모
커밋
552f28c10b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/mapObjects/CGHeroInstance.cpp

+ 1 - 1
lib/mapObjects/CGHeroInstance.cpp

@@ -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