Fixed pull effect broadcast validateposition to owner.
Contributed by Sahar.
This commit is contained in:
@@ -77,7 +77,7 @@ public class PullBack extends AbstractEffect
|
||||
{
|
||||
effected.broadcastPacket(new FlyToLocation(effected, effector, _type, _speed, _delay, _animationSpeed));
|
||||
effected.setXYZ(effector);
|
||||
effected.broadcastPacket(new ValidateLocation(effected));
|
||||
effected.broadcastPacket(new ValidateLocation(effected), false);
|
||||
effected.revalidateZone(true);
|
||||
}
|
||||
}
|
||||
|
@@ -614,6 +614,11 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
||||
* @param mov
|
||||
*/
|
||||
public void broadcastPacket(IClientOutgoingPacket mov)
|
||||
{
|
||||
broadcastPacket(mov, true);
|
||||
}
|
||||
|
||||
public void broadcastPacket(IClientOutgoingPacket mov, boolean includeSelf)
|
||||
{
|
||||
World.getInstance().forEachVisibleObject(this, PlayerInstance.class, player ->
|
||||
{
|
||||
|
@@ -4172,14 +4172,17 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
|
||||
@Override
|
||||
public void broadcastPacket(IClientOutgoingPacket mov)
|
||||
public void broadcastPacket(IClientOutgoingPacket mov, boolean includeSelf)
|
||||
{
|
||||
if (mov instanceof CharInfo)
|
||||
{
|
||||
new IllegalArgumentException("CharInfo is being send via broadcastPacket. Do NOT do that! Use broadcastCharInfo() instead.");
|
||||
}
|
||||
|
||||
sendPacket(mov);
|
||||
if (includeSelf)
|
||||
{
|
||||
sendPacket(mov);
|
||||
}
|
||||
|
||||
World.getInstance().forEachVisibleObject(this, PlayerInstance.class, player ->
|
||||
{
|
||||
|
@@ -88,7 +88,7 @@ public class TrapInstance extends Npc
|
||||
}
|
||||
|
||||
@Override
|
||||
public void broadcastPacket(IClientOutgoingPacket mov)
|
||||
public void broadcastPacket(IClientOutgoingPacket mov, boolean includeSelf)
|
||||
{
|
||||
World.getInstance().forEachVisibleObject(this, PlayerInstance.class, player ->
|
||||
{
|
||||
|
Reference in New Issue
Block a user