浏览代码

* minor fix for commit r1178

mateuszb 16 年之前
父节点
当前提交
1fd156e79d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      server/CGameHandler.cpp

+ 2 - 0
server/CGameHandler.cpp

@@ -2480,6 +2480,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
 		}
 		}
 	case 9: //catapult
 	case 9: //catapult
 		{
 		{
+			sendAndApply(&StartAction(ba));
 			const CGHeroInstance * attackingHero = (ba.side) ? gs->getHero(gs->curB->hero2) : gs->getHero(gs->curB->hero1);
 			const CGHeroInstance * attackingHero = (ba.side) ? gs->getHero(gs->curB->hero2) : gs->getHero(gs->curB->hero1);
 			CHeroHandler::SBallisticsLevelInfo sbi = VLC->heroh->ballistics[attackingHero->getSecSkillLevel(20)]; //artillery
 			CHeroHandler::SBallisticsLevelInfo sbi = VLC->heroh->ballistics[attackingHero->getSecSkillLevel(20)]; //artillery
 			
 			
@@ -2539,6 +2540,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
 
 
 				sendAndApply(&ca);
 				sendAndApply(&ca);
 			}
 			}
+			sendAndApply(&EndAction());
 			break;
 			break;
 		}
 		}
 	}
 	}