Made onlyAlive flag a part of TargetInfo
Merge and simplify resistance calculation