forked from MagicBane/Server
handle retaliate when being attacked
This commit is contained in:
@@ -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