From 6e32843fb45c50f2353b9a4b32fa4dae3f692ba2 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 19 Feb 2013 11:01:50 -0500 Subject: [PATCH] Add potion effect for Daze. --- .../com/gmail/nossr50/skills/archery/DazeEventHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/archery/DazeEventHandler.java b/src/main/java/com/gmail/nossr50/skills/archery/DazeEventHandler.java index 59f1b7bea..274cc23a6 100644 --- a/src/main/java/com/gmail/nossr50/skills/archery/DazeEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/archery/DazeEventHandler.java @@ -3,6 +3,8 @@ package com.gmail.nossr50.skills.archery; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.skills.utilities.SkillTools; @@ -40,11 +42,12 @@ public class DazeEventHandler { } defender.teleport(location); + defender.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 20 * 10, 10)); + event.setDamage(event.getDamage() + Archery.dazeModifier); } protected void sendAbilityMessages() { - defender.sendMessage(LocaleLoader.getString("Combat.TouchedFuzzy")); manager.getMcMMOPlayer().getPlayer().sendMessage(LocaleLoader.getString("Combat.TargetDazed")); } }