From 04b1c33c2d7f54569d4cb89207e7dd253b9d05df Mon Sep 17 00:00:00 2001 From: coderkun Date: Mon, 28 Apr 2014 09:37:44 +0200 Subject: [PATCH] Questtype ?Boss-Fight?: do not lose Boss-Fight-Quests --- .../BossfightQuesttypeController.inc | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/questtypes/bossfight/BossfightQuesttypeController.inc b/questtypes/bossfight/BossfightQuesttypeController.inc index 4f8001e7..9495c073 100644 --- a/questtypes/bossfight/BossfightQuesttypeController.inc +++ b/questtypes/bossfight/BossfightQuesttypeController.inc @@ -78,25 +78,7 @@ */ public function matchAnswersOfCharacter($seminary, $questgroup, $quest, $character, $answers) { - // Get Boss-Fight - $fight = $this->Bossfight->getBossFight($quest['id']); - - // Prepare session - $this->prepareSession($quest['id']); - - // Calculate lives - $lives = array( - 'character' => $fight['lives_character'], - 'boss' => $fight['lives_boss'] - ); - foreach($_SESSION['quests'][$quest['id']]['stages'] as &$stage) - { - $lives['character'] += $stage['livedrain_character']; - $lives['boss'] += $stage['livedrain_boss']; - } - - - return ($lives['boss'] == 0 && $lives['character'] > 0); + return true; }