Fixed with daze potion self damage and only randomly working
This commit is contained in:
parent
9e3cf58ff5
commit
0b02bc9e2d
@ -5,6 +5,7 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -145,6 +146,8 @@ public class PerkWitchPotion extends SmashPerk implements IThrown
|
||||
|
||||
for (Player player : nearby.keySet())
|
||||
{
|
||||
if(player.equals(data.getThrower())) continue;
|
||||
|
||||
Manager.GetDamage().NewDamageEvent(player, entity, null, DamageCause.CUSTOM, DAMAGE_NORMAL * nearby.get(player), true, true, false, entity.getName(), GetName());
|
||||
}
|
||||
}
|
||||
@ -152,10 +155,12 @@ public class PerkWitchPotion extends SmashPerk implements IThrown
|
||||
@Override
|
||||
public void Idle(ProjectileUser data)
|
||||
{
|
||||
Collide(null, null, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void Expire(ProjectileUser data)
|
||||
{
|
||||
Collide(null, null, data);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user