minor change to getDef

pass it attacktype instead of attacker.
bow/bow[]

fixed nan error?