Bazaar developer reference

CvLuaUnit::lImmuneToFirstStrikes(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2914
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lImmuneToFirstStrikes

Hooks

static bool BeforeCvLuaUnit_lImmuneToFirstStrikes(lua_State* L, int& result);static void AfterCvLuaUnit_lImmuneToFirstStrikes(lua_State* L, int& result);static int ReplaceCvLuaUnit_lImmuneToFirstStrikes(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lImmuneToFirstStrikes>(host, &BeforeCvLuaUnit_lImmuneToFirstStrikes);CivRegisterAfter<CivHooks::CvLuaUnit_lImmuneToFirstStrikes>(host, &AfterCvLuaUnit_lImmuneToFirstStrikes);CivRegisterReplace<CivHooks::CvLuaUnit_lImmuneToFirstStrikes>(host, &ReplaceCvLuaUnit_lImmuneToFirstStrikes);

Code

2913//bool immuneToFirstStrikes();2914int CvLuaUnit::lImmuneToFirstStrikes(lua_State* L)2915{2916	CvUnit* pkUnit = GetInstance(L);2917	const bool bResult = pkUnit->immuneToFirstStrikes();29182919	lua_pushboolean(L, bResult);2920	return 1;2921}

Calls

Called by