v2.0.0: fixed bugs with kinetic and elemental strike
This commit is contained in:
@@ -244,8 +244,8 @@ public class ElementalStrike extends ArmorAbility {
|
|||||||
|
|
||||||
//*** Kinetic ***
|
//*** Kinetic ***
|
||||||
if (ench instanceof Kinetic){
|
if (ench instanceof Kinetic){
|
||||||
if (hero.buff(Kinetic.KineticTracker.class) != null) {
|
if (hero.buff(Kinetic.ConservedDamage.class) != null) {
|
||||||
storedKineticDamage = hero.buff(Kinetic.KineticTracker.class).conservedDamage;
|
storedKineticDamage = hero.buff(Kinetic.ConservedDamage.class).damageBonus();
|
||||||
}
|
}
|
||||||
|
|
||||||
//*** Blocking ***
|
//*** Blocking ***
|
||||||
@@ -348,10 +348,17 @@ public class ElementalStrike extends ArmorAbility {
|
|||||||
|
|
||||||
//*** Kinetic ***
|
//*** Kinetic ***
|
||||||
} else if (ench instanceof Kinetic){
|
} else if (ench instanceof Kinetic){
|
||||||
for (Char ch : affected){
|
if (storedKineticDamage > 0) {
|
||||||
if (ch != primaryTarget) {
|
for (Char ch : affected) {
|
||||||
ch.damage(Math.round(storedKineticDamage * 0.33f * powerMulti), ench);
|
if (ch != primaryTarget) {
|
||||||
|
ch.damage(Math.round(storedKineticDamage * 0.33f * powerMulti), ench);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
storedKineticDamage = 0;
|
||||||
|
}
|
||||||
|
//clear stored damage if there was no primary target
|
||||||
|
if (primaryTarget == null && hero.buff(Kinetic.ConservedDamage.class) != null){
|
||||||
|
hero.buff(Kinetic.ConservedDamage.class).detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
//*** Blooming ***
|
//*** Blooming ***
|
||||||
|
|||||||
Reference in New Issue
Block a user