forked from MagicBane/Server
fix castable enchant duration counter
This commit is contained in:
@@ -330,7 +330,7 @@ public class Effect {
|
||||
serializeForClientMsg(writer);
|
||||
return;
|
||||
}
|
||||
float duration = this.jc.timeToExecutionLeft() / 1000;
|
||||
float duration = this.jc.timeToExecutionLeft() * 0.001f;// 1000;
|
||||
writer.putInt(this.eb.getToken());
|
||||
writer.putInt(aej.getTrains());
|
||||
writer.putInt(0);
|
||||
@@ -366,7 +366,7 @@ public class Effect {
|
||||
return;
|
||||
}
|
||||
|
||||
float duration = this.jc.timeToExecutionLeft() / 1000;
|
||||
float duration = this.jc.timeToExecutionLeft() *0.001f;// 1000;
|
||||
if (aej instanceof DamageOverTimeJob)
|
||||
duration = ab.getDurationInSeconds(aej.getTrains()) - (((DamageOverTimeJob) aej).getIteration() * 5);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user