--Second Special Leaderscene logic for Son Gohan (Base and SSJ Form):
--If the player is Blanc and she is at War with him, he is pissed at seeing her and shows the same face Blanc does when she's Hostile.
local iBlanc = GameInfoTypes.LEADER_VV_BLANC
local iWhiteHeart = GameInfoTypes.LEADER_VV_WHITE_HEART
local iBlancUD = GameInfoTypes.LEADER_VV_BLANC_ULTRA
local iWhiteHeartUD = GameInfoTypes.LEADER_VV_WHITE_HEART_ULTRA
function SonGohanSpecialLeadersceneAnger( iPlayer, iDiploUIState, szLeaderMessage, iAnimationAction, iData1 )
local pPlayer = Players[iPlayer]
local pActivePlayer = Players[Game:GetActivePlayer()]
if pPlayer:GetLeaderType() == iSonGohan or pPlayer:GetLeaderType() == iSonGohanSSJ or pPlayer:GetLeaderType() == iSonGohanUltra or pPlayer:GetLeaderType() == iSonGohanSSJUltra and pActivePlayer:GetLeaderType() == iBlanc or pActivePlayer:GetLeaderType() == iWhiteHeart or pActivePlayer:GetLeaderType() == iBlancUD or pActivePlayer:GetLeaderType() == iWhiteHeartUD
and Teams[pPlayer:GetTeam()]:IsAtWar(pActivePlayer:GetTeam()) then
local iApproach = pActivePlayer:GetApproachTowardsUsGuess(iPlayer);
if iApproach = MajorCivApproachTypes.MAJOR_CIV_APPROACH_WAR then
return "SonGohanSceneDynamicWarBlanc.dds"
end
end
return nil
end
Events.LoadScreenClose.Add(function () LuaEvents.AddFunctionToLeaderSceneTable(SonGohanSpecialLeadersceneAnger) end)