Witch changes
This commit is contained in:
parent
69ed0c7c24
commit
3c852f091d
@ -293,7 +293,7 @@ public class PerkBatWave extends SmashPerk
|
|||||||
bat.remove();
|
bat.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
_bats.remove(player);
|
_bats.remove(player.getUniqueId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -311,7 +311,7 @@ public class PerkBatWave extends SmashPerk
|
|||||||
{
|
{
|
||||||
_damageTaken.put(key, (_damageTaken.get(key) + event.GetDamage()));
|
_damageTaken.put(key, (_damageTaken.get(key) + event.GetDamage()));
|
||||||
|
|
||||||
if (_damageTaken.get(key) >= _disableDamage)
|
if (event.GetCause() == DamageCause.ENTITY_ATTACK || _damageTaken.get(key) >= _disableDamage)
|
||||||
{
|
{
|
||||||
Clear(player);
|
Clear(player);
|
||||||
}
|
}
|
||||||
|
@ -164,6 +164,7 @@ public class PerkWitchPotion extends SmashPerk implements IThrown
|
|||||||
for (Player player : directHit)
|
for (Player player : directHit)
|
||||||
{
|
{
|
||||||
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDirect, true, true, false, thrower.getName(), GetName());
|
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDirect, true, true, false, thrower.getName(), GetName());
|
||||||
|
Manager.GetCondition().Factory().Slow(GetName(), target, thrower, 2, 1, true, true, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
players.removeAll(directHit);
|
players.removeAll(directHit);
|
||||||
@ -175,6 +176,7 @@ public class PerkWitchPotion extends SmashPerk implements IThrown
|
|||||||
if(!UtilEnt.isInsideBoundingBox(player, a, b)) continue;
|
if(!UtilEnt.isInsideBoundingBox(player, a, b)) continue;
|
||||||
|
|
||||||
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDistance, true, true, false, thrower.getName(), GetName());
|
Manager.GetDamage().NewDamageEvent(player, thrower, null, DamageCause.CUSTOM, _damageDistance, true, true, false, thrower.getName(), GetName());
|
||||||
|
Manager.GetCondition().Factory().Slow(GetName(), target, thrower, 2, 0, true, true, false, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user