Browse Source

handle retaliate when being attacked

combat-2
FatBoy-DOTC 7 months ago
parent
commit
dc81ddaba7
  1. 7
      src/engine/gameManager/CombatManager.java

7
src/engine/gameManager/CombatManager.java

@ -136,6 +136,13 @@ public enum CombatManager { @@ -136,6 +136,13 @@ public enum CombatManager {
if (inRange) {
//handle retaliate
if(AbstractCharacter.IsAbstractCharacter(target)){
if(((AbstractCharacter)target).combatTarget == null){
((AbstractCharacter)target).combatTarget = attacker;
}
}
// take stamina away from attacker
if (weapon != null) {

Loading…
Cancel
Save