File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Intersect.Client.Core/Entities Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,6 @@ public ResourceDescriptor? Descriptor
4949 get => _descriptor ;
5050 set
5151 {
52- if ( value is { } descriptor )
53- {
54- _maximumHealthForStates = ( int ) ( descriptor . UseExplicitMaxHealthForResourceStates
55- ? descriptor . MaxHp
56- : MaxVital [ ( int ) Enums . Vital . Health ] ) ;
57- }
58- else
59- {
60- _maximumHealthForStates = 0 ;
61- }
62-
6352 if ( value == _descriptor )
6453 {
6554 return ;
@@ -195,6 +184,10 @@ public override void Load(EntityPacket? packet)
195184 return ;
196185 }
197186
187+ _maximumHealthForStates = ( int ) ( descriptor . UseExplicitMaxHealthForResourceStates
188+ ? descriptor . MaxHp
189+ : MaxVital [ ( int ) Enums . Vital . Health ] ) ;
190+
198191 Descriptor = descriptor ;
199192
200193 if ( ! justDied )
You can’t perform that action at this time.
0 commit comments