THIS IS NOT BACKWARD COMPATIBLE WITHY OTHER DEV VERSIONS! buffix the attack target issue mentioned in the forums
This commit is contained in:
parent
5b664fb1a2
commit
a98234c14e
|
@ -2274,7 +2274,7 @@ void UnitUpdater::hit(Unit *attacker, const AttackSkillType* ast, const Vec2i &t
|
|||
attacker->setLastAttackedUnitId(attacked->getId());
|
||||
scriptManager->onUnitAttacking(attacker);
|
||||
|
||||
damage(attacker, ast, attacked, pci.getPos().dist(attacker->getTargetPos()));
|
||||
damage(attacker, ast, attacked, pci.getPos().dist(targetPos));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue