mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed effect desync when using changeling abilities
This commit is contained in:
parent
136519fb47
commit
325bdd0fdf
1 changed files with 3 additions and 1 deletions
|
@ -128,7 +128,9 @@ public class ChangelingFeedAbility implements Ability<Hit> {
|
|||
ParticleUtils.spawnParticles(UParticles.CHANGELING_MAGIC, living, 7);
|
||||
|
||||
if (changeling.hasStatusEffect(StatusEffects.NAUSEA)) {
|
||||
living.addStatusEffect(changeling.removeStatusEffectInternal(StatusEffects.NAUSEA));
|
||||
StatusEffectInstance effect = changeling.getStatusEffect(StatusEffects.NAUSEA);
|
||||
changeling.removeStatusEffect(StatusEffects.NAUSEA);
|
||||
living.addStatusEffect(effect);
|
||||
} else if (changeling.getEntityWorld().random.nextInt(2300) == 0) {
|
||||
living.addStatusEffect(new StatusEffectInstance(StatusEffects.WITHER, 20, 1));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue