v2.0.0: fixed duelist abilities benefitting from time freeze
This commit is contained in:
@@ -215,8 +215,8 @@ public class Pickaxe extends MeleeWeapon {
|
||||
}
|
||||
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
|
||||
}
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -95,8 +95,8 @@ public class Greataxe extends MeleeWeapon {
|
||||
onAbilityKill(hero);
|
||||
}
|
||||
}
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -94,8 +94,8 @@ public class Mace extends MeleeWeapon {
|
||||
wep.onAbilityKill(hero);
|
||||
}
|
||||
}
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
wep.afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -126,8 +126,8 @@ public class Rapier extends MeleeWeapon {
|
||||
onAbilityKill(hero);
|
||||
}
|
||||
}
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -94,8 +94,8 @@ public class RunicBlade extends MeleeWeapon {
|
||||
}
|
||||
}
|
||||
tracker.detach();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -101,6 +101,7 @@ public class Sai extends MeleeWeapon {
|
||||
}
|
||||
}
|
||||
|
||||
Invisibility.dispel();
|
||||
if (recentHits >= 2 && hit){
|
||||
for (Buff b : buffs){
|
||||
b.detach();
|
||||
@@ -110,7 +111,6 @@ public class Sai extends MeleeWeapon {
|
||||
} else {
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
}
|
||||
Invisibility.dispel();
|
||||
wep.afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -101,8 +101,8 @@ public class Spear extends MeleeWeapon {
|
||||
}
|
||||
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
|
||||
}
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
wep.afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -93,6 +93,7 @@ public class Sword extends MeleeWeapon {
|
||||
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
|
||||
}
|
||||
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
if (!enemy.isAlive()){
|
||||
wep.onAbilityKill(hero);
|
||||
@@ -102,7 +103,6 @@ public class Sword extends MeleeWeapon {
|
||||
hero.buff(CleaveTracker.class).detach();
|
||||
}
|
||||
}
|
||||
Invisibility.dispel();
|
||||
wep.afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -84,8 +84,8 @@ public class Whip extends MeleeWeapon {
|
||||
onAbilityKill(hero);
|
||||
}
|
||||
}
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(hero.attackDelay());
|
||||
afterAbilityUsed(hero);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user