Added ignore_despawn column to npc_types to have NPCs ignore the despawn column in spawngroup.

This commit is contained in:
regneq
2017-04-07 19:45:26 -07:00
parent 75d759fb77
commit 4600844336
7 changed files with 32 additions and 5 deletions
+3
View File
@@ -417,6 +417,8 @@ public:
bool IsRaidTarget() const { return raid_target; };
void ResetHPUpdateTimer() { sendhpupdate_timer.Start(); }
bool IgnoreDespawn() { return ignore_despawn; }
protected:
const NPCType* NPCTypedata;
@@ -532,6 +534,7 @@ protected:
bool raid_target;
uint8 probability;
bool ignore_despawn; //NPCs with this set to 1 will ignore the despawn value in spawngroup
private:
uint32 loottable_id;