mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
vcmi: massive refactoring v1
This commit is contained in:
@@ -101,7 +101,7 @@ BattleAction CBattleAI::activeStack( const CStack * stack )
|
||||
|
||||
try
|
||||
{
|
||||
if(stack->type->idNumber == CreatureID::CATAPULT)
|
||||
if(stack->type->getId() == CreatureID::CATAPULT)
|
||||
return useCatapult(stack);
|
||||
if(stack->hasBonusOfType(Bonus::SIEGE_WEAPON) && stack->hasBonusOfType(Bonus::HEALER))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user