/** 执行一个完成动作 */ protected virtual void doOneOverAction(int[] args) { bool isDriveAll = _parent.isDriveAll(); switch (args[0]) { case BuffOverActionType.AddAttribute: { if (!isDriveAll) { return; } _parent.attribute.addOneAttribute(args[1], args[2]); } break; case BuffOverActionType.AddAttributeVar: { if (!isDriveAll) { return; } _parent.attribute.addOneAttribute(args[1], _parent.getSkillVarValue(args[2])); } break; case BuffOverActionType.MakeAttack: { _parent.doBuffAttack(args[1], args[2]); } break; case BuffOverActionType.AddBuff: { if (!isDriveAll) { return; } addBuff(args[1], args[2]); } break; case BuffOverActionType.RemoveBuffByID: { if (!isDriveAll) { return; } removeBuffByID(args[1]); } break; case BuffOverActionType.StartCD: { if (!isDriveAll) { return; } _parent.cd.startCD(args[1]); } break; case BuffOverActionType.StartCDVar: { if (!isDriveAll) { return; } _parent.cd.startCDVar(args[1], args[2]); } break; default: { _parent.doOneBuffOverActionEx(args); } break; } }