|
@@ -971,7 +971,7 @@ void BattleActionProcessor::makeAttack(const CBattleInfoCallback & battle, const
|
|
|
}
|
|
|
|
|
|
std::shared_ptr<const Bonus> bonus = attacker->getFirstBonus(Selector::type()(BonusType::SPELL_LIKE_ATTACK));
|
|
|
- if(bonus && ranged && bonus->subtype.as<SpellID>().hasValue()) //TODO: make it work in melee?
|
|
|
+ if(bonus && ranged) //TODO: make it work in melee?
|
|
|
{
|
|
|
//this is need for displaying hit animation
|
|
|
bat.flags |= BattleAttack::SPELL_LIKE;
|