BoltLog.Info("Revealing unit {0} as it attacked unit {1}",action.Unit,target);
Debug.LogFormat("Revealing unit {0} as it attacked unit {1}",action.Unit,target);
action.Unit.IncreaseRevealLevel();
}
}
@ -639,18 +639,18 @@ namespace GWConquest
{
if(flank.Player!=unit.Player)
{
BoltLog.Error("Tried to move unit {0} of player {1} to flank {2} of player {3}",unit,unit.Player,flank,flank.Player);
Debug.LogErrorFormat("Tried to move unit {0} of player {1} to flank {2} of player {3}",unit,unit.Player,flank,flank.Player);
}
elseif(flank.MaxUnitCount<=flankIndex)
{
BoltLog.Error("Tried to move unit {0} to flank index {1} on flank {2} with size {3}",unit,flankIndex,flank,flank.MaxUnitCount);
Debug.LogErrorFormat("Tried to move unit {0} to flank index {1} on flank {2} with size {3}",unit,flankIndex,flank,flank.MaxUnitCount);
}
elseif(flank.GetUnit(flankIndex)!=null)
{
BoltLog.Error("Tried to move unit {0} to flank index {1} on flank {2}, but it was already occupied by {3}",unit,flankIndex,flank,flank.GetUnit(flankIndex));
Debug.LogErrorFormat("Tried to move unit {0} to flank index {1} on flank {2}, but it was already occupied by {3}",unit,flankIndex,flank,flank.GetUnit(flankIndex));
}
else{
BoltLog.Info("Moving unit {0} to flank index {1} on flank {2}",unit,flankIndex,flank);
Debug.LogFormat("Moving unit {0} to flank index {1} on flank {2}",unit,flankIndex,flank);