Ok, another question instead:
EVENT_COMBAT_EVENT does not return any sourceName values, it's always empty (even if the source is the player himself). Is this intended, does anybody know why it does not work? I know ZOS has deactivated many events in cyrodiil, but it doesn't work anywhere...
Example:
Code:
function AuraMastery.OnCombatEvent(eventCode,result,isError,abilityName,abilityGraphic,abilityActionSlotType,sourceName,sourceType,targetName,targetType,hitValue,powerType,damageType,combatEventLog,sourceUnitId,targetUnitId,abilityId)
if ACTION_RESULT_EFFECT_GAINED_DURATION == result then
d(targetName.." got "..abilityName.." from "..sourceName)
end
if ACTION_RESULT_EFFECT_FADED == result then
d(sourceName.."'s ("..sourceUnitId..") "..abilityName.." faded from "..targetName)
end
end
It prints
"'s (0) Major Sorcery faded from Letho" where it should actually be "Letho's ([my unitID]) Major Sorcery faded from Letho".