mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 04:12:37 +01:00
Fix applying effects to bots
This commit is contained in:
parent
ffd01c2965
commit
fe2e3c0594
@ -3607,9 +3607,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
|
|
||||||
Habbo habbo = roomUnit.getRoom().getHabbo(roomUnit);
|
Habbo habbo = roomUnit.getRoom().getHabbo(roomUnit);
|
||||||
|
|
||||||
if (habbo == null) return;
|
if (roomUnit.getRoomUnitType() == RoomUnitType.USER && (habbo == null || habbo.getHabboInfo().isInGame() && !ignoreChecks)) { return; }
|
||||||
|
|
||||||
if (!habbo.getHabboInfo().isInGame() || ignoreChecks) {
|
|
||||||
if (duration == -1 || duration == Integer.MAX_VALUE) {
|
if (duration == -1 || duration == Integer.MAX_VALUE) {
|
||||||
duration = Integer.MAX_VALUE;
|
duration = Integer.MAX_VALUE;
|
||||||
} else {
|
} else {
|
||||||
@ -3620,7 +3618,6 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
roomUnit.setEffectId(effectId, duration);
|
roomUnit.setEffectId(effectId, duration);
|
||||||
this.sendComposer(new AvatarEffectMessageComposer(roomUnit).compose());
|
this.sendComposer(new AvatarEffectMessageComposer(roomUnit).compose());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void giveHandItem(Habbo habbo, int handItem) {
|
public void giveHandItem(Habbo habbo, int handItem) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user