Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

Commit

Permalink
Short teleportation is stopped by shield turrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
linewriter1024 committed Jan 8, 2017
1 parent cd0163c commit 6ff567f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions magic/spells/teleportation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ if magic.config.enable_short_teleports then
cost = 7,
gravity = 0.35,
forceload = true,
near_turret = function(self, pos, spell)
if spell.protects and spell.protects.magic and magic.use_turrent_spell(pos) then
return true
end
end,
hit_node = function(self, pos, last_empty_pos)
local akingdom = kingdoms.bypos(last_empty_pos)
if self.player then
Expand Down

0 comments on commit 6ff567f

Please sign in to comment.