LeeS
Imperator
In this section you have the highlighted line stated twice:
This does not actually hurt anything but you don't need the second one, so just change it to read:
This should work to only make America get the benefit because everything else is written to only apply the Great Writer Points bonus to "attPlayer".
Code:
[color="blue"]local attPlayer = Players[attPlayerID];[/color]
local defPlayer = Players[defPlayerID];
local defUnit = defPlayer:GetUnitByID(defUnitID);
[color="blue"] local attPlayer = Players[attPlayerID];[/color]
Code:
local attPlayer = Players[attPlayerID];
local defPlayer = Players[defPlayerID];
local defUnit = defPlayer:GetUnitByID(defUnitID);
if attPlayer:GetCivilizationType() ~= GameInfoTypes.CIVILIZATION_AMERICA then return end