mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-03 13:38:20 +00:00
Fixed Passives being disabled after user is bloodbent (#702)
This commit is contained in:
parent
0b2833d9b6
commit
eca81a576b
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@ import com.projectkorra.projectkorra.BendingPlayer;
|
||||||
import com.projectkorra.projectkorra.GeneralMethods;
|
import com.projectkorra.projectkorra.GeneralMethods;
|
||||||
import com.projectkorra.projectkorra.ability.AirAbility;
|
import com.projectkorra.projectkorra.ability.AirAbility;
|
||||||
import com.projectkorra.projectkorra.ability.BloodAbility;
|
import com.projectkorra.projectkorra.ability.BloodAbility;
|
||||||
|
import com.projectkorra.projectkorra.ability.util.PassiveManager;
|
||||||
import com.projectkorra.projectkorra.avatar.AvatarState;
|
import com.projectkorra.projectkorra.avatar.AvatarState;
|
||||||
import com.projectkorra.projectkorra.object.HorizontalVelocityTracker;
|
import com.projectkorra.projectkorra.object.HorizontalVelocityTracker;
|
||||||
import com.projectkorra.projectkorra.util.DamageHandler;
|
import com.projectkorra.projectkorra.util.DamageHandler;
|
||||||
|
@ -284,6 +285,9 @@ public class Bloodbending extends BloodAbility {
|
||||||
for (Entity e : TARGETED_ENTITIES.keySet()) {
|
for (Entity e : TARGETED_ENTITIES.keySet()) {
|
||||||
if (TARGETED_ENTITIES.get(e) == player) {
|
if (TARGETED_ENTITIES.get(e) == player) {
|
||||||
TARGETED_ENTITIES.remove(e);
|
TARGETED_ENTITIES.remove(e);
|
||||||
|
if (e instanceof Player) {
|
||||||
|
PassiveManager.registerPassives((Player) e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue