mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-01-24 07:20:49 +00:00
The Sleep, Stun and Snare powers now affect mobs.
They currently don't expire after a set amount of time. Attacking a sleeping monster does wake it up, but doesn't remove the debuff status client-side yet.
This commit is contained in:
@@ -20,6 +20,7 @@ enum class MobState {
|
||||
struct Mob : public BaseNPC {
|
||||
MobState state;
|
||||
const int maxHealth;
|
||||
|
||||
time_t killedTime = 0;
|
||||
const int regenTime;
|
||||
bool despawned = false; // for the sake of death animations
|
||||
@@ -42,6 +43,8 @@ struct Mob : public BaseNPC {
|
||||
spawnY = appearanceData.iY;
|
||||
spawnZ = appearanceData.iZ;
|
||||
|
||||
appearanceData.iConditionBitFlag = 0;
|
||||
|
||||
// NOTE: there appear to be discrepancies in the dump
|
||||
appearanceData.iHP = maxHealth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user