bool FightOver() { if (CurHp[0] == 0) { FightOverEvent e = new FightOverEvent() { WinParty = 1, LoseParty = 0 }; ProcessFightEvent(EnumFightEvent.Over, e); return true; } else if (CurHp[1] == 0) { FightOverEvent e = new FightOverEvent() { WinParty = 0, LoseParty = 1 }; ProcessFightEvent(EnumFightEvent.Over, e); return true; } return false; }
bool FightOver() { if (CurHp[0] == 0) { FightOverEvent e = new FightOverEvent() { WinParty = 1, LoseParty = 0 }; ProcessFightEvent(EnumFightEvent.Over, e); return(true); } else if (CurHp[1] == 0) { FightOverEvent e = new FightOverEvent() { WinParty = 0, LoseParty = 1 }; ProcessFightEvent(EnumFightEvent.Over, e); return(true); } return(false); }