roollback extra effect cancel on damage
This commit is contained in:
@@ -462,13 +462,11 @@ public enum CombatManager {
|
|||||||
|
|
||||||
if (damage > 0) {
|
if (damage > 0) {
|
||||||
|
|
||||||
if (AbstractCharacter.IsAbstractCharacter(target)) {
|
if (AbstractCharacter.IsAbstractCharacter(target))
|
||||||
((AbstractCharacter) target).modifyHealth(-damage, attacker, true);
|
((AbstractCharacter) target).modifyHealth(-damage, attacker, true);
|
||||||
//PowersManager.cancelOnTakeDamage((AbstractCharacter) target);
|
else
|
||||||
((AbstractCharacter) target).cancelOnTakeDamage(damageType,damage);
|
|
||||||
}else {
|
|
||||||
((Building) target).modifyHealth(-damage, attacker);
|
((Building) target).modifyHealth(-damage, attacker);
|
||||||
}
|
|
||||||
int attackAnim = getSwingAnimation(null, null, slot);
|
int attackAnim = getSwingAnimation(null, null, slot);
|
||||||
if (attacker.charItemManager.getEquipped().get(slot) != null) {
|
if (attacker.charItemManager.getEquipped().get(slot) != null) {
|
||||||
if (attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter)) {
|
if (attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user