View Single Post
10/03/17, 04:40 AM   #4
elly22
Join Date: Oct 2017
Posts: 4
Used pChat plugin to see what happens with inCombat veriable and saw inCombat = nil as I expected.
Okay, tried to set it to 0:
Lua Code:
  1. function testplugin:Initialize()
  2.   self.inCombat = IsUnitInCombat("player")
  3.   EVENT_MANAGER:RegisterForEvent(self.name, EVENT_PLAYER_COMBAT_STATE, self.OnPlayerCombatState)
  4.  
  5.   inCombat=false
  6. end
And inCombat is 0 after that (I check it in testplugin.OnAddOnLoaded), but sign still exists after reloadui.
  Reply With Quote