// TODO: 变为全属性 (ok) public bool castPropertyChangeToAll(MonsterAttribute curPro) { BT_Logical war = owner._war; bool change = false; if (opObj.ID == 29 && canCastSkillOpDefault()) { if (curPro != MonsterAttribute.ALL) { change = true; BT_MonsterTeam selfTeam = owner.ownerTeam; if (selfTeam.getTeamName == "Att") { war._AoYiCastCount_Att = 1; } else { war._AoYiCastCount_Def = 1; } CMsgSkillCast msg = new CMsgSkillCast(this, CMsgSkillCast.categoryPropertyChangeToAll); war.addMsgToRecorder(msg); } else { if (real == 1) { war.resetAoYi(this, owner.ownerTeam); } } } return(change); }
// 加气的技能-目前是只有神龙奥义在使用 private void AddAngryCount(int num) { BT_Logical war = owner._war; BT_MonsterTeam selfTeam = owner.ownerTeam; selfTeam.addAngry(num); CMsgSkillCast msg = new CMsgSkillCast(this, CMsgSkillCast.categoryAddAngryPoint); msg.curAngry = selfTeam.curAngry; war.addMsgToRecorder(msg); }
/// <summary> /// 把消息加入分步模式的动作列表里 /// </summary> private void addMsgToStepRecorder(CMsgHeader msg) { if (bStepMode) { if (msg is CMsgSkillCast) { CMsgSkillCast cast = msg as CMsgSkillCast; BT_MonsterTeam team = teamFromPveId(cast.caster); cast.curAngry = team.curAngry; } StepRecorder.Add(msg); } }
public void addMsgToRecorder(CMsgHeader msg) { //可能要加入分步列表里 addMsgToStepRecorder(msg); if (msg is CMsgSkillCast) { CMsgSkillCast cast = msg as CMsgSkillCast; BT_MonsterTeam team = teamFromPveId(cast.caster); cast.curAngry = team.curAngry; } _warRecorder.Add(msg); if (msg is CMsgWarEnd) { CMsgWarEnd end = msg as CMsgWarEnd; WarIsOver = end.winner == "Att" ? 1 : 0; } }
// TODO: 无视属性克制 public bool castIgnorePropertyKill() { BT_Logical war = owner._war; bool ignore = false; if (opObj.ID == 27 && canCastSkillOpDefault()) { ignore = true; BT_MonsterTeam selfTeam = owner.ownerTeam; if (selfTeam.getTeamName == "Att") { war._AoYiCastCount_Att = 1; } else { war._AoYiCastCount_Def = 1; } CMsgSkillCast msg = new CMsgSkillCast(this, CMsgSkillCast.categoryIgnorePropertyKill); war.addMsgToRecorder(msg); } return(ignore); }