Lua GetDungeonDifficulty

From ArcEmu-Wiki
Jump to: navigation, search

Example 1

function VHC_OnSpawn (Unit, Event)
	if (Unit:GetDungeonDifficulty() == 1) then
		Unit:SetHealth(65165)
		Unit:SetMaxHealth(65165)
	else
		Unit:SetHealth(42540)
		Unit:SetMaxHealth(42540)
	end
end
 
RegisterUnitEvent(30666, 18, "VHC_OnSpawn")
Personal tools