Update Monster.cpp
This commit is contained in:
parent
e08a31daf5
commit
2d02ff1df8
@ -1,4 +1,3 @@
|
||||
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "IncludeAllMonsters.h"
|
||||
@ -526,7 +525,10 @@ void cMonster::KilledBy(cEntity * a_Killer)
|
||||
break;
|
||||
}
|
||||
}
|
||||
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), Reward);
|
||||
if (a_Killer != NULL)
|
||||
{
|
||||
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), Reward);
|
||||
}
|
||||
m_DestroyTimer = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user