Sfoglia il codice sorgente

Fixed an issue with AG_BATTLE and AG_TAMING (#4006)

* Added a missing assignment for achievement monster targets.
Thanks to @teededung and @Lemongrass3110!
Aleos 6 anni fa
parent
commit
54ac2ae132
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/map/achievement.cpp

+ 2 - 0
src/map/achievement.cpp

@@ -164,6 +164,8 @@ uint64 AchievementDatabase::parseBodyNode(const YAML::Node &node){
 				if( !this->mobexists( mob_id ) ){
 					this->achievement_mobs.push_back( mob_id );
 				}
+
+				target->mob = mob_id;
 			}else{
 				if( !targetExists ){
 					target->mob = 0;