-- When druids change forms, the state is updated again with the same information, but the updated form info is taken into account. This allows for smart mounting to effectively cancel the form that was just cast because the type is usually set to cast the form spell that was just cast. |
|
SecureHandlerWrapScript(self, "OnAttributeChanged", self, [[ |
local class, catform, druidlogic, bearspell, catspell, travelspell, wolfspell, worgenlogic = self:GetAttribute("playerclass"), self:GetAttribute("catform"), self:GetAttribute("druidlogic"), self:GetAttribute("bearspell"), self:GetAttribute("catspell"), self:GetAttribute("travelspell"), self:GetAttribute("wolfspell"), self:GetAttribute("worgenlogic") |
local LivestockClass, catform, druidlogic, bearspell, catspell, travelspell, wolfspell, worgenlogic = self:GetAttribute("playerclass"), self:GetAttribute("catform"), self:GetAttribute("druidlogic"), self:GetAttribute("bearspell"), self:GetAttribute("catspell"), self:GetAttribute("travelspell"), self:GetAttribute("wolfspell"), self:GetAttribute("worgenlogic") |
local waterwalkingspell = self:GetAttribute("waterwalking") |
local waterwalkingtoggle = self:GetAttribute("waterwalkingtoggle") |
local combatformstoggle = self:GetAttribute("combatformstoggle") |