358 elseif GetHealth(minion2.gear) then |
358 elseif GetHealth(minion2.gear) then |
359 AnimSay(minion2.gear, loc("The boss has fallen! Retreat!"), SAY_SHOUT, 6000) |
359 AnimSay(minion2.gear, loc("The boss has fallen! Retreat!"), SAY_SHOUT, 6000) |
360 elseif GetHealth(minion3.gear) then |
360 elseif GetHealth(minion3.gear) then |
361 AnimSay(minion3.gear, loc("The boss has fallen! Retreat!"), SAY_SHOUT, 6000) |
361 AnimSay(minion3.gear, loc("The boss has fallen! Retreat!"), SAY_SHOUT, 6000) |
362 end |
362 end |
363 ParseCommand("teamgone " .. teamB.name) |
363 DismissTeam(teamB.name) |
364 AnimCaption(hero.gear, loc("Congrats! You made them run away!"), 6000) |
364 AnimCaption(hero.gear, loc("Congrats! You made them run away!"), 6000) |
365 AnimWait(hero.gear,5000) |
365 AnimWait(hero.gear,5000) |
366 |
366 |
367 saveCompletedStatus(1) |
367 saveCompletedStatus(1) |
368 SendStat(siGameResult, loc("Hog Solo wins, congratulations!")) |
368 SendStat(siGameResult, loc("Hog Solo wins, congratulations!")) |
375 end |
375 end |
376 |
376 |
377 function minionsDeath(gear) |
377 function minionsDeath(gear) |
378 -- do staffs here |
378 -- do staffs here |
379 AnimSay(professor.gear, loc("I may lost this battle, but I haven't lost the war yet!"), SAY_SHOUT, 6000) |
379 AnimSay(professor.gear, loc("I may lost this battle, but I haven't lost the war yet!"), SAY_SHOUT, 6000) |
380 ParseCommand("teamgone " .. teamC.name) |
380 DismissTeam(teamC.name) |
381 AnimCaption(hero.gear, loc("Congrats! You won!"), 6000) |
381 AnimCaption(hero.gear, loc("Congrats! You won!"), 6000) |
382 AnimWait(hero.gear,5000) |
382 AnimWait(hero.gear,5000) |
383 |
383 |
384 saveCompletedStatus(1) |
384 saveCompletedStatus(1) |
385 SendStat(siGameResult, loc("Congratulations, you won!")) |
385 SendStat(siGameResult, loc("Congratulations, you won!")) |