Skip to content

Commit

Permalink
add axe desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Eroica-cpp committed Jun 26, 2017
1 parent 55418fd commit 216cf63
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Axe.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-- File: Axe.lua
-- Author: EroicaCpp (https://github.com/Eroica-cpp/dota2scripts)
-- Version: 1.0
-- Release Date: 2017/6/26

local Utility = require("Utility")

local Axe = {}
Expand Down Expand Up @@ -41,7 +46,7 @@ function Axe.AutoBattleHunger(myHero, orders)

local battle_hunger = NPC.GetAbility(myHero, "axe_battle_hunger")
if not battle_hunger or not Ability.IsCastable(battle_hunger, NPC.GetMana(myHero)) then return end

if not orders.target or not NPC.IsHero(orders.target) or Entity.IsSameTeam(myHero, orders.target) then return end
if NPC.HasModifier(orders.target, "modifier_axe_battle_hunger") then return end
if NPC.HasState(orders.target, Enum.ModifierState.MODIFIER_STATE_MAGIC_IMMUNE) then return end
Expand Down Expand Up @@ -95,7 +100,7 @@ function Axe.OnUpdate()

end

-- auto initiate when enemy heroes are near
-- auto initiate when enemy heroes are near
-- (this mode can be turn on/off by pressing key)
function Axe.OnDraw()
if not Menu.IsEnabled(Axe.optionAutoInitiate) then return end
Expand Down Expand Up @@ -137,4 +142,4 @@ function Axe.OnDraw()

end

return Axe
return Axe

0 comments on commit 216cf63

Please sign in to comment.