- added user-submitted PlayerCC and Target/PlayerInvuln classes

- added user-submitted root and silence groups to the CC modules
- filled out CC list a bit more with user-submitted spell id's
This commit is contained in:
Parnic
2010-01-11 01:10:50 +00:00
parent a324728b01
commit 7e82f6d88a
5 changed files with 395 additions and 8 deletions

27
modules/PlayerCC.lua Normal file
View File

@ -0,0 +1,27 @@
local AceOO = AceLibrary("AceOO-2.0")
-- changed to inherit from the TargetCC bar since the only difference is the unit and the default placement
-- helps keep changes in one place and we don't have to duplicate the CC spell tables and they don't have to be globals
local PlayerCC = AceOO.Class(TargetCC)
-- Constructor --
function PlayerCC.prototype:init()
PlayerCC.super.prototype.init(self, "PlayerCC", "player")
end
-- 'Public' methods -----------------------------------------------------------
-- OVERRIDE
function PlayerCC.prototype:GetDefaultSettings()
local settings = PlayerCC.super.prototype.GetDefaultSettings(self)
settings["side"] = IceCore.Side.Left
settings["offset"] = 5
return settings
end
-- 'Protected' methods --------------------------------------------------------
-- Load us up
IceHUD.PlayerCC = PlayerCC:new()