How do I modify this so that if a the player's attacks only affect the direction they are facing? EX. A player facing left would only be able to hit his left side meanwhile a player facing right can only hit players on his right sideCode:private static void getDirection(AbstractDealDamageHandler.AttackInfo attack) { if (isAoe) { isRight = false; isLeft = false; } else if (attack.direction < 0 && attack.stance < 0) { isRight = false; isLeft = true; } else if (attack.direction > 0 && attack.stance > 0) { isRight = true; isLeft = false; } else { isRight = false; isLeft = false; } }


Reply With Quote


