Skip to content

Commit

Permalink
Creature: Allow setting RespawnDelay with chrono literals
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed Oct 7, 2024
1 parent 20e90ee commit f4110fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/Entities/Creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ class Creature : public Unit

uint32 GetRespawnDelay() const { return m_respawnDelay; }
void SetRespawnDelay(uint32 delay, bool once = false) { m_respawnDelay = delay; m_respawnOverriden = true; m_respawnOverrideOnce = once; } // in seconds
void SetRespawnDelay(std::chrono::seconds delay, bool once = false) { SetRespawnDelay(delay.count(), once); }

float GetRespawnRadius() const { return m_respawnradius; }
void SetRespawnRadius(float dist) { m_respawnradius = dist; }
Expand Down

0 comments on commit f4110fc

Please sign in to comment.