public void 天气雨() { var buffs = OSPersonBuff.GetByIsPositive(AimQQNum, true); if (buffs.IsNullOrEmpty()) { MsgSender.PushMsg(GroupNum, 0, "对手没有增益状态", BindAi); return; } var buff = buffs.RandElement(); buff.Remove(); MsgSender.PushMsg(GroupNum, 0, $"移除了 {buff.Name}:{buff.Description}", BindAi); }
public void 花昙() { var buffs = OSPersonBuff.GetByIsPositive(SelfQQNum, false); if (buffs.IsNullOrEmpty()) { MsgSender.PushMsg(GroupNum, 0, "你没有任何负面状态", BindAi); return; } var buff = buffs.RandElement(); buff.Remove(); MsgSender.PushMsg(GroupNum, 0, $"移除了 {buff.Name}:{buff.Description}", BindAi); }
public void 台风() { var buffs = OSPersonBuff.GetByIsPositive(AimQQNum, true); if (buffs.IsNullOrEmpty()) { MsgSender.PushMsg(GroupNum, 0, "对手没有增益状态", BindAi); return; } var buff = buffs.RandElement(); buff.Id = Guid.NewGuid().ToString(); buff.QQNum = SelfQQNum; buff.Add(); MsgSender.PushMsg(GroupNum, 0, $"复制到了 {buff.Name}:{buff.Description}", BindAi); }