mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Revert changes to teams
This commit is contained in:
parent
353a01f563
commit
e9ae737c90
@ -4124,23 +4124,15 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void giveEffect(RoomUnit roomUnit, int effectId, int duration) {
|
public void giveEffect(RoomUnit roomUnit, int effectId, int duration) {
|
||||||
if(roomUnit == null) return;
|
if (duration == -1 || duration == Integer.MAX_VALUE) {
|
||||||
|
duration = Integer.MAX_VALUE;
|
||||||
|
} else {
|
||||||
|
duration += Emulator.getIntUnixTimestamp();
|
||||||
|
}
|
||||||
|
|
||||||
Habbo habbo = roomUnit.getRoom().getHabbo(roomUnit);
|
if (this.allowEffects && roomUnit != null) {
|
||||||
|
roomUnit.setEffectId(effectId, duration);
|
||||||
if(habbo == null) return;
|
this.sendComposer(new RoomUserEffectComposer(roomUnit).compose());
|
||||||
|
|
||||||
if (!habbo.getHabboInfo().isInGame()) {
|
|
||||||
if (duration == -1 || duration == Integer.MAX_VALUE) {
|
|
||||||
duration = Integer.MAX_VALUE;
|
|
||||||
} else {
|
|
||||||
duration += Emulator.getIntUnixTimestamp();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.allowEffects) {
|
|
||||||
roomUnit.setEffectId(effectId, duration);
|
|
||||||
this.sendComposer(new RoomUserEffectComposer(roomUnit).compose());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user