fixed crash with cost and non-skill attacks