Fix Provoke not provoking monsters.

testdev
sigonasr2 8 years ago
parent 35ada09a50
commit 7b45ad4ca3
  1. BIN
      TwosideKeeper.jar
  2. 5
      src/sig/plugin/TwosideKeeper/CustomDamage.java

Binary file not shown.

@ -1361,9 +1361,10 @@ public class CustomDamage {
m.addPotionEffect(new PotionEffect(PotionEffectType.GLOWING,duration,0),true);
}
static void applyProvokeAggro(Monster m, ItemStack weapon) {
static void applyProvokeAggro(Monster m, Player p, ItemStack weapon) {
if (ArtifactAbility.containsEnchantment(ArtifactAbility.PROVOKE, weapon)) {
//This is allowed, get the level on the weapon.
setMonsterTarget(m,p);
setAggroGlowTickTime(m,(int)(GenericFunctions.getAbilityValue(ArtifactAbility.PROVOKE, weapon)*20));
}
}
@ -1374,7 +1375,7 @@ public class CustomDamage {
}
if (m instanceof Monster) {
applyDefenderAggro((Monster)m,p);
applyProvokeAggro((Monster)m,weapon);
applyProvokeAggro((Monster)m,p,weapon);
leaderRallyNearbyMonsters((Monster)m,p);
applyDonnerSetAggro((Monster)m,p);
}

Loading…
Cancel
Save