private void assignAMS() {
// sort all missile-based attacks by the target
Hashtable<Entity, Vector<WeaponHandler>> htAttacks = new Hashtable<Entity, Vector<WeaponHandler>>();
for (AttackHandler ah : game.getAttacksVector()) {
WeaponHandler wh = (WeaponHandler) ah;
WeaponAttackAction waa = wh.waa;
// ignore artillery attacks, here the attacking entity
// might no longer be in the game
if (waa instanceof ArtilleryAttackAction) {
continue;