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