perma root and perma stun
This commit is contained in:
@@ -5219,6 +5219,11 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
this.clearClientEffects();
|
||||||
|
}catch(Exception ignored){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error(e);
|
Logger.error(e);
|
||||||
@@ -5230,6 +5235,17 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
Logger.error("UPDATE ISSUE: " + e);
|
Logger.error("UPDATE ISSUE: " + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void clearClientEffects(){
|
||||||
|
if(this.bonuses != null) {
|
||||||
|
if (!bonuses.getBool(ModType.Stunned, SourceType.None)) {
|
||||||
|
this.removeEffectBySource(EffectSourceType.Stun, 40, true);
|
||||||
|
}
|
||||||
|
if(!this.bonuses.getBool(Enum.ModType.CannotMove,Enum.SourceType.None)){
|
||||||
|
this.removeEffectBySource(EffectSourceType.Root,40,true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
public static void unboxPlayer(PlayerCharacter player){
|
public static void unboxPlayer(PlayerCharacter player){
|
||||||
String machineID = player.getClientConnection().machineID;
|
String machineID = player.getClientConnection().machineID;
|
||||||
ArrayList<PlayerCharacter> sameMachine = new ArrayList<>();
|
ArrayList<PlayerCharacter> sameMachine = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user