minor change to getDef

pass it attacktype instead of attacker.