diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 1f62578d..fa8bea5a 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -536,6 +536,14 @@ class HeroController extends BaseAuthedController { $this->_rspErr(5, "It's already the highest level2"); return; } + $newHeroDb = $heroDb; + $newHeroDb['quality'] += 1; + $heroDto = Hero::toDto($heroDb); + $newHeroDto = Hero::toDto($newHeroDb); + $this->_rspData(array( + 'old_hero' => $heroDto, + 'new_hero' => $newHeroDto + )); } }