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