public void NotifyAddBuff(IBuff b) { var add = new AddBuff(b.TargetUnit, b.SourceUnit, b.StackCount, b.Duration, b.BuffType, b.Name, b.Slot); _packetHandlerManager.BroadcastPacket(add, Channel.CHL_S2C); }
public static void notifyAddBuff(Unit u, Unit source, string buffName) { var add = new AddBuff(u, source, 1, buffName); PacketHandlerManager.getInstace().broadcastPacket(add, Channel.CHL_S2C); }
public void notifyAddBuff(Buff b) { var add = new AddBuff(b.TargetUnit, b.SourceUnit, b.Stacks, b.Duration, BuffType.Aura, b.Name, 1); _game.PacketHandlerManager.broadcastPacket(add, Channel.CHL_S2C); }
public void notifyAddBuff(Buff b) { var add = new AddBuff(b.GetUnit(), b.GetSourceUnit(), b.GetStacks(), b.GetDuration(), BuffType.Aura, b.GetName(), 1); _game.PacketHandlerManager.broadcastPacket(add, Channel.CHL_S2C); }