Skip to content

Commit

Permalink
Reinstate blink compatibility after ccd4eaa
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Feb 12, 2017
1 parent e4fc833 commit 0bcecea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _work/data/Scripts/Content/freeAim/_intern.d
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,14 @@ func void freeAimSetupSpell() {
if (!freeAimSpellEligible(spell)) { return; }; // Only with eligible spells
var int focusType; // No focus display for TARGET_COLLECT_NONE (still focus collection though)
if (!spell.targetCollectAlgo) { focusType = 0; } else { focusType = spell.targetCollectType; };
var int pos[3]; freeAimRay(spell.targetCollectRange, focusType, 0, 0, 0, 0, _@(pos)); // Caution: Maximum distance!
var int pos[3];
MEM_PushIntParam(MEM_ReadInt(_@(spell)-44)); //0x0054 oCSpell.spellID
MEM_Call(freeAimShiftAimVob); // Check if this spell needs the exact intersection coordinates
if (MEM_PopIntResult()) {
freeAimRay(spell.targetCollectRange, focusType, 0, _@(pos), 0, 0, 0); // Correct distance
} else {
freeAimRay(spell.targetCollectRange, focusType, 0, 0, 0, 0, _@(pos)); // Maximum distance
};
var int vobPtr; vobPtr = freeAimSetupAimVob(_@(pos)); // Aim vob at maximum distance so spells dont stop mid-air
MEM_WriteInt(ESP+4, vobPtr); // Overwrite target vob
};
Expand Down

0 comments on commit 0bcecea

Please sign in to comment.