forked from MagicBane/Server
DispatchManager is now an official manager singleton.
This commit is contained in:
@@ -11,6 +11,7 @@ package engine.powers.poweractions;
|
||||
|
||||
import engine.InterestManagement.WorldGrid;
|
||||
import engine.gameManager.ChatManager;
|
||||
import engine.gameManager.DispatchManager;
|
||||
import engine.jobs.ChantJob;
|
||||
import engine.jobs.DeferredPowerJob;
|
||||
import engine.jobs.FinishEffectTimeJob;
|
||||
@@ -18,7 +19,6 @@ import engine.math.Vector3fImmutable;
|
||||
import engine.mbEnums.GameObjectType;
|
||||
import engine.mbEnums.ModType;
|
||||
import engine.mbEnums.SourceType;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.client.msg.chat.ChatSystemMsg;
|
||||
import engine.objects.*;
|
||||
import engine.powers.ActionsBase;
|
||||
@@ -117,7 +117,7 @@ public class ApplyEffectPowerAction extends AbstractPowerAction {
|
||||
|
||||
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
|
||||
ChatSystemMsg msg = ChatManager.CombatInfo(source, awo);
|
||||
DispatchMessage.sendToAllInRange(source, msg);
|
||||
DispatchManager.sendToAllInRange(source, msg);
|
||||
}
|
||||
}
|
||||
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
|
||||
@@ -249,7 +249,7 @@ public class ApplyEffectPowerAction extends AbstractPowerAction {
|
||||
if (awo != null && awo.getObjectType() == GameObjectType.Mob) {
|
||||
((Mob) awo).setCombatTarget(source);
|
||||
ChatSystemMsg msg = ChatManager.CombatInfo(source, awo);
|
||||
DispatchMessage.sendToAllInRange(source, msg);
|
||||
DispatchManager.sendToAllInRange(source, msg);
|
||||
}
|
||||
}
|
||||
this.effect.startEffect(source, awo, trains, eff);
|
||||
|
||||
Reference in New Issue
Block a user