void MyEffect(int value, RoleBase attacker) { if (attacker.isFight) { attacker.GetHurt((int)(value * 0.5f)); } }