Fixed sword/damage event bug