fixed a attack function and member name that were the same