mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
more fixes to loading of creatures
fixed when there are spaces at beginning of the file fixed when file is unable to parse
This commit is contained in:
@@ -72,6 +72,10 @@ if(isset($_POST['reload_monsters']) && $canEdit)
|
||||
//add monsters
|
||||
foreach($allmonsters as $lol) {
|
||||
$monster = $allmonsters->current();
|
||||
if(!$monster->loaded()) {
|
||||
warning('Error while adding monster: ' . $allmonsters->currentFile());
|
||||
continue;
|
||||
}
|
||||
//load monster mana needed to summon/convince
|
||||
$mana = $monster->getManaCost();
|
||||
//load monster experience
|
||||
|
Reference in New Issue
Block a user