handle retaliate when being attacked
This commit is contained in:
1 parent
4a001179b5
commit
dc81ddaba7
1 file changed
+7
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user