]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/MapState.cpp
implemented capsule/class selection
[l2e.git] / src / map / MapState.cpp
index d678dab965d573c7722a963a9cc5936ac57af5c6..b223f4fd6a2d4a111bb0394a39ccd10d612fa561 100644 (file)
@@ -296,6 +296,9 @@ bool MapState::CheckMonster() {
                                                battleState->AddHero(*game->state->party[i]);
                                        }
                                }
+                               if (game->state->capsule) {
+                                       battleState->SetCapsule(&game->state->GetCapsule());
+                               }
                                for (battle::Monster **monster((*e)->MonstersBegin()); monster != (*e)->MonstersEnd(); ++monster) {
                                        battleState->AddMonster(**monster);
                                }
@@ -311,9 +314,6 @@ bool MapState::CheckMonster() {
                                // TODO: move entity erase to happen after the transition or battle
                                entities.erase(e);
                                return true;
-                               // needed information here:
-                               //  - battle background (from tile/area/map)
-                               //  - monsters + layout (from entity)
                        }
                }
        }