View Single Post
04/09/17, 02:32 PM   #2
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 238
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".

Last edited by Letho : 04/09/17 at 02:36 PM.
  Reply With Quote