Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

BuffManager Library --[OnBuffGain/OnBuffLost] Callback


  • Please log in to reply
No replies to this topic

#1
ty01314

ty01314

    Advanced Member

  • Banned
  • PipPipPip
  • 477 posts

OnBuffGain and OnBuffLost callback

 

heroes only

 

cpu friendly (cost ~0.003 clock in 5v5 game)

 

Usage:

require "BuffManager"

OnBuffGain(function(unit,buff) 
       --print("BuffGain "..unit.charName.." "..buff.name) 
end) 

OnBuffLost(function(unit,buff) 
        --print("BuffLost "..unit.charName.." "..buff.name) 
end)

 

Meeboo version can't detect onBufflost correctly. Hence i fix it.

Credit : Meeboo
 


  • 2




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users