Skip to content

Commit

Permalink
fix summons
Browse files Browse the repository at this point in the history
fixed player and monsters cannot  summon again if reach maxsummons and a summon dies.
  • Loading branch information
celohere committed Dec 7, 2019
1 parent 20a5fcd commit d267734
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/creature.cpp
Expand Up @@ -25,10 +25,6 @@
#include "configmanager.h"
#include "scheduler.h"

double Creature::speedA = 857.36;
double Creature::speedB = 261.29;
double Creature::speedC = -4795.01;

extern Game g_game;
extern ConfigManager g_config;
extern CreatureEvents* g_creatureEvents;
Expand Down Expand Up @@ -718,7 +714,7 @@ void Creature::onDeath()
death(_lastHitCreature);

if (master) {
setMaster(nullptr);
master->removeSummon(this);
}

if (droppedCorpse) {
Expand Down

0 comments on commit d267734

Please sign in to comment.