Skip to content

Commit

Permalink
Conjure Spell change to support kill passives
Browse files Browse the repository at this point in the history
If a kill passive tries to conjure an item, this allows it to target the entity in the specific event it dies and conjure the items accordingly.
  • Loading branch information
ShinyDeagle authored and TheComputerGeek2 committed Apr 14, 2018
1 parent 57b44ac commit 597659d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/com/nisovin/magicspells/spells/instant/ConjureSpell.java
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,10 @@ public boolean castAtEntity(Player caster, LivingEntity target, float power) {

@Override
public boolean castAtEntity(LivingEntity target, float power) {
if (!(target instanceof Player)) return false;
if (!(target instanceof Player)) {
castAtLocation(target.getLocation(), power);
return true;
}
conjureItems((Player)target, power);
return true;
}
Expand Down

0 comments on commit 597659d

Please sign in to comment.