!TODO Item Bomb

This commit is contained in:
HexedHero 2020-05-18 14:09:41 +01:00
parent ff085d1dbe
commit 1be031f8cc

View File

@ -42,6 +42,7 @@ public class Item_Bomb extends Ability implements Listener {
return new VectorAbilityResult(ability, stats.getPlayer(), target);
}
// TODO getItemInMainHand? Breaks the ability when used in the offhand.
@Override
public void whenCast(CachedStats stats, AbilityResult ability, ItemAttackResult result) {
ItemStack itemStack = stats.getPlayer().getInventory().getItemInMainHand().clone();