Move corpse res charge reset to checkpoint
This commit is contained in:
parent
bf1a477e34
commit
f1f3d40f77
@ -33,6 +33,7 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem.Implementations
|
||||
});
|
||||
|
||||
player.CheckPointPosition = this.Position;
|
||||
player.Attributes[GameAttribute.Corpse_Resurrection_Charges] = 3; // Reset corpse resurrection charges
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1336,6 +1336,8 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem
|
||||
|
||||
this.Attributes[GameAttribute.Hitpoints_Cur] = this.Attributes[GameAttribute.Hitpoints_Max_Total];
|
||||
|
||||
this.Attributes[GameAttribute.Corpse_Resurrection_Charges] = 3;
|
||||
|
||||
//TestOutPutItemAttributes(); //Activate this only for finding item stats.
|
||||
this.Attributes.BroadcastChangedIfRevealed();
|
||||
|
||||
@ -2462,8 +2464,6 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem
|
||||
}
|
||||
}
|
||||
|
||||
this.Attributes[GameAttribute.Corpse_Resurrection_Charges] = 3; // Reset resurrection charges on zone change (TODO: do not reset charges on reentering the same zone)
|
||||
|
||||
#if DEBUG
|
||||
Logger.Warn("Местоположение игрока {0}, Scene: {1} SNO: {2} LevelArea: {3}", this.Toon.Name, this.CurrentScene.SceneSNO.Name, this.CurrentScene.SceneSNO.Id, this.CurrentScene.Specification.SNOLevelAreas[0]);
|
||||
#else
|
||||
|
||||
Loading…
Reference in New Issue
user.block.title