/branches/4.2/Aloft/AloftCastWarning
end |
end |
function AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, isChanneled, effective) |
function AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, isChanneled, effective) |
local spell |
local typ, origin = self:GetLogOriginType(originFlags) |
local typ, origin = self:GetLogOriginType(originFlags, originFlags2) |
if origin then |
-- ChatFrame7:AddMessage("AloftCastWarning:RecordSpellLogInfo(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(originFlags) .. "/" .. tostring(spellSchool)) |
----------------------------------------------------------------------------- |
local function range_damage(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
local function range_damage(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:RANGE_DAMAGE(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
--[[ |
]] |
end |
local function range_missed(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, missType, amountMissed) |
local function range_missed(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, missType, amountMissed) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:RANGE_MISSED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(missType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
--[[ |
----------------------------------------------------------------------------- |
local function spell_cast_start(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool) |
local function spell_cast_start(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_CAST_START(): nameplate " .. tostring(subtype) .. "/" .. tostring(originGUId) .. "/" .. tostring(AloftTargetTrackingData:GetGUIdNameplateId(originGUId)) .. "/" .. tostring(spellId)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_CAST_START(): record " .. tostring(subtype) .. "/" .. tostring(originGUId) .. "/" .. tostring(AloftTargetTrackingData:GetGUIdNameplateId(originGUId)) .. "/" .. tostring(originFlags) .. "/" .. tostring(spellId) .. "/" .. tostring(spell and spell.name) .. "/" .. tostring(spell and spell.rank)) |
if spell and AloftCastWarning:StartActiveLogCast(timestamp, originGUId, originFlags, subtype, spellId, spell) then |
if spell and AloftCastWarning:StartActiveLogCast(timestamp, originGUId, originFlags, originFlags2, subtype, spellId, spell) then |
AloftCastWarning:UpdateCastWarning() |
end |
end |
local function spell_damage(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
local function spell_damage(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_DAMAGE(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, school) |
-- TODO: format resist/block/absorb/etc into an extra string? |
end |
end |
local function spell_heal(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, amount, overhealing, critical) |
local function spell_heal(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, amount, overhealing, critical) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_HEAL(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
if AloftCastWarning:EndActiveCast(originGUId, spellId, spellName, nil, SUCCEEDED, nil) then |
end |
end |
local function spell_missed(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, missType, amountMissed) |
local function spell_missed(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, missType, amountMissed) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_MISSED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(missType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
if AloftCastWarning:EndActiveCast(originGUId, spellId, spellName, nil, MISSED, missType) then |
----------------------------------------------------------------------------- |
-- NOTE: *_CAST_SUCCESS is invoked when channeled spells start and/or instant cast events occur |
local function spell_cast_success(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool) |
local function spell_cast_success(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_CAST_SUCCESS(): " .. tostring(subtype) .. "/" .. tostring(spellId)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_CAST_SUCCESS(): " .. tostring(spell and spell.id) .. "/" .. tostring(spell and spell.name) .. "/" .. tostring(spell and spell.isChanneled)) |
if spell and spell.isChanneled and AloftCastWarning:StartActiveLogCast(timestamp, originGUId, originFlags, subtype, spellId, spell) then |
if spell and spell.isChanneled and AloftCastWarning:StartActiveLogCast(timestamp, originGUId, originFlags, originFlags2, subtype, spellId, spell) then |
AloftCastWarning:UpdateCastWarning() |
end |
end |
local function spell_cast_failed(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, failedType) |
local function spell_cast_failed(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, failedType) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_CAST_FAILED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(failedType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
if spell and AloftCastWarning:EndActiveCast(originGUId, spellId, spellName, nil, FAILED, failedType) then |
end |
end |
local function spell_interrupt(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, extraSpellID, extraSpellName, extraSchool) |
local function spell_interrupt(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, extraSpellID, extraSpellName, extraSchool) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_INTERRUPT(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(extraSpellID) .. "/" .. tostring(extraSpellName) .. "/" .. tostring(extraSchool)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
if AloftCastWarning:EndActiveCast(originGUId, spellId, spellName, nil, INTERRUPT, extraSpellName) then |
----------------------------------------------------------------------------- |
local function spell_resurrect(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool) |
local function spell_resurrect(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_RESURRECT(): " .. tostring(subtype) .. "/" .. tostring(spellId)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
if AloftCastWarning:EndActiveCast(originGUId, spellId, spellName, nil, SUCCEEDED, nil) then |
end |
end |
local function spell_summon(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool) |
local function spell_summon(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_SUMMON(): " .. tostring(subtype) .. "/" .. tostring(spellId)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
if AloftCastWarning:EndActiveCast(originGUId, spellId, spellName, nil, SUCCEEDED, nil) then |
end |
end |
local function spell_create(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool) |
local function spell_create(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_CREATE(): " .. tostring(subtype) .. "/" .. tostring(spellId)) |
end |
-- TODO: a spell outcome here? |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
if AloftCastWarning:EndActiveCast(originGUId, spellId, spellName, nil, CREATE, nil) then |
----------------------------------------------------------------------------- |
local function spell_periodic_damage(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
local function spell_periodic_damage(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_PERIODIC_DAMAGE(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_periodic_heal(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, amount, overhealing, critical) |
local function spell_periodic_heal(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, amount, overhealing, critical) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_PERIODIC_HEAL(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_periodic_missed(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, missType, amountMissed) |
local function spell_periodic_missed(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, missType, amountMissed) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_PERIODIC_MISSED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(missType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
----------------------------------------------------------------------------- |
local function spell_aura_applied(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, auraType) |
local function spell_aura_applied(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, auraType) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_AURA_APPLIED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(auraType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, true, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, true, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_aura_applied_dose(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, auraType, amount) |
local function spell_aura_applied_dose(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, auraType, amount) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_AURA_APPLIED_DOSE(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(auraType) .. "/" .. tostring(amount)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_aura_broken(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, auraType) |
local function spell_aura_broken(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, auraType) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_AURA_BROKEN(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(auraType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_aura_broken_spell(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, extraSpellID, extraSpellName, extraSchool, auraType) |
local function spell_aura_broken_spell(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, extraSpellID, extraSpellName, extraSchool, auraType) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_AURA_BROKEN_SPELL(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(extraSpellID) .. "/" .. tostring(extraSpellName) .. "/" .. tostring(extraSchool) .. "/" .. tostring(auraType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_aura_refresh(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, auraType) |
local function spell_aura_refresh(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, auraType) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_AURA_REFRESH(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(auraType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, true) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, true) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_aura_removed(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, auraType) |
local function spell_aura_removed(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, auraType) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_AURA_REMOVED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(auraType)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, true, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, true, false) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
local function spell_aura_removed_dose(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, auraType, amount) |
local function spell_aura_removed_dose(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, auraType, amount) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SPELL_AURA_REMOVED_DOSE(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(amount)) |
end |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, nil, false) |
local spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, spellSchool, originFlags, originFlags2, nil, false) |
AloftCastWarning:UpdateSpellSchool(subtype, spellId, spellSchool) |
end |
----------------------------------------------------------------------------- |
local function swing_damage(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
local function swing_damage(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SWING_DAMAGE(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
-- TODO: "attack" seems to be spellid 6603, use that somehow? |
end |
local function swing_missed(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, missType, amountMissed) |
local function swing_missed(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, missType, amountMissed) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:SWING_MISSED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(missType)) |
end |
----------------------------------------------------------------------------- |
local function damage_shield(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
local function damage_shield(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:DAMAGE_SHIELD(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
end |
local function damage_shield_missed(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, missType, amountMissed) |
local function damage_shield_missed(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, missType, amountMissed) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:DAMAGE_SHIELD_MISSED(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(missType)) |
end |
----------------------------------------------------------------------------- |
local function damage_split(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
local function damage_split(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, spellId, spellName, spellSchool, spellDamage, spellOverkill, school, resisted, blocked, absorbed, critical, glancing, crushing) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:DAMAGE_SPLIT(): " .. tostring(subtype) .. "/" .. tostring(spellId) .. "/" .. tostring(spellSchool)) |
end |
----------------------------------------------------------------------------- |
local function unit_died(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags) |
local function unit_died(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags) |
if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:unit_died(): " .. tostring(subtype) .. "/" .. tostring(originGUId) .. "/" .. tostring(originName) .. "/" .. tostring(targetGUId) .. "/" .. tostring(targetName)) |
end |
-- COMBAT_LOG_* event support |
function AloftCastWarning:OnCombatLogEvent(event, timestamp, subtype, hideCaster, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, suffix1, suffix2, suffix3, suffix4, suffix5, suffix6, suffix7, suffix8, suffix9, suffix10, suffix11, suffix12) |
function AloftCastWarning:OnCombatLogEvent(event, timestamp, subtype, hideCaster, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, suffix1, suffix2, suffix3, suffix4, suffix5, suffix6, suffix7, suffix8, suffix9, suffix10, suffix11, suffix12) |
-- local unit |
-- if AloftTargetTrackingData:GetGUIdNameplateId(originGUId) then |
-- unit = "origin" |
dispatchMethod = subtypeDispatchMethods[subtype] |
if dispatchMethod then |
dispatchMethod(timestamp, subtype, originGUId, originName, originFlags, targetGUId, targetName, targetFlags, suffix1, suffix2, suffix3, suffix4, suffix5, suffix6, suffix7, suffix8, suffix9, suffix10, suffix11, suffix12) |
dispatchMethod(timestamp, subtype, originGUId, originName, originFlags, originFlags2, targetGUId, targetName, targetFlags, targetFlags2, suffix1, suffix2, suffix3, suffix4, suffix5, suffix6, suffix7, suffix8, suffix9, suffix10, suffix11, suffix12) |
end |
end |
----------------------------------------------------------------------------- |
function AloftCastWarning:StartActiveLogCast(timestamp, originGUId, originFlags, subtype, spellId, spell) |
function AloftCastWarning:StartActiveLogCast(timestamp, originGUId, originFlags, originFlags2, subtype, spellId, spell) |
-- ChatFrame7:AddMessage("AloftCastWarning:StartActiveLogCast(): enter " .. tostring(subtype) .. "/" .. tostring(originGUId) .. "/" .. tostring(originFlags) .. "/" .. tostring(spellId) .. "/" .. tostring(spell and spell.id) .. "/" .. tostring(spell and spell.name)) |
if AloftTargetTrackingData:GetGUIdUnitid(originGUId) then |
-- ChatFrame7:AddMessage("AloftCastWarning:StartActiveLogCast(): NO targetId " .. tostring(nameplateId) .. "/" .. tostring(originGUId) .. "/" .. tostring(spellId) .. "/" .. tostring(spellName)) |
if not spell then |
-- spell was not found/collected at the top, attempt to record it in some basic form here; theoretically, we should never get here |
spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, nil, originFlags, nil, false) |
spell = AloftCastWarning:RecordSpellLogInfo(subtype, spellId, nil, originFlags, originFlags2, nil, false) |
end |
-- NOTE: comparing on the basis of (deprecated) name/rank because in certain cases the first tick of a channeled spell |
----------------------------------------------------------------------------- |
function AloftCastWarning:GetLogOriginType(originFlags) |
function AloftCastWarning:GetLogOriginType(originFlags, originFlags2) |
local value = bit_band(originFlags, COMBATLOG_OBJECT_TYPE_MASK) |
if value == COMBATLOG_OBJECT_TYPE_PLAYER then |
return value, "player" |