Add initial combat spell support

This commit is contained in:
Steve Soltys
2016-01-27 12:32:55 -05:00
committed by Gary Tierney
parent 9f47fae6a9
commit ec248a185b
9 changed files with 238 additions and 38 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class CombatAction < Action
current_distance = mob.position.get_distance target.position
attack_collision_type = next_attack.range > 1 ? EntityType::PROJECTILE : EntityType::NPC
in_range = current_distance <= next_attack.range && !$world.intersects(mob.position, target.position, attack_collision_type)
in_range = current_distance <= next_attack.range# && !$world.intersects(mob.position, target.position, attack_collision_type)
unless in_range
mob.follow @combat_state.target, next_attack.range