THIS IS NOT BACKWARD COMPATIBLE WITHY OTHER DEV VERSIONS! buffix the attack target issue mentioned in the forums

This commit is contained in:
Mark Vejvoda 2013-05-21 21:19:59 +00:00
parent 5b664fb1a2
commit a98234c14e
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}
}