Skip to content
Permalink
Browse files

leylines abilities

A long overdue tweak to the action logs!
  • Loading branch information...
Manuel-777 committed Sep 10, 2019
1 parent ad883f4 commit 462cbbaf96675b735517309acf59d56f3e9e310e
Showing with 20 additions and 0 deletions.
  1. +20 −0 window_background/gre-to-client-interpreter.js
@@ -283,11 +283,31 @@ annotationFunctions.AnnotationType_ZoneTransfer = function(ann, details) {
}
};

annotationFunctions.AnnotationType_AbilityInstanceCreated = function(ann, details) {
let affected = ann.affectedIds[0];
let affector = instanceIdToObject(ann.affectorId);

if (affector) {
currentMatch.gameObjs[affected] = {
instanceId: affected,
grpId: 0,
type: "GameObjectType_Ability",
zoneId: affector.zoneId,
visibility: "Visibility_Public",
ownerSeatId: affector.ownerSeatId,
controllerSeatId: affector.controllerSeatId,
objectSourceGrpId: affector.grpId,
parentId: affector.instanceId
};
}
};

annotationFunctions.AnnotationType_ResolutionStart = function(ann, details) {
let affected = instanceIdToObject(ann.affectedIds[0]);
let grpId = details.grpid;

if (affected.type == "GameObjectType_Ability") {
affected.grpId = grpId;
actionLog(
affected.controllerSeatId,
logTime,

0 comments on commit 462cbba

Please sign in to comment.
You can’t perform that action at this time.