[Lua] Add UpdatePersonalFaction Lua Mod (#4279)

* Add UpdatePersonalFaction lua mod

* Fix typo

* Fix value typo
This commit is contained in:
Xackery
2024-05-04 15:58:58 -07:00
committed by GitHub
parent 943274b443
commit 34c27ebb2a
5 changed files with 88 additions and 0 deletions
+9
View File
@@ -1620,6 +1620,15 @@ int64 LuaParser::CalcSpellEffectValue_formula(Mob *self, uint32 formula, int64 b
return retval;
}
int32 LuaParser::UpdatePersonalFaction(Mob *self, int32 npc_value, int32 faction_id, int32 current_value, int32 temp, int32 this_faction_min, int32 this_faction_max, bool &ignore_default)
{
int32 retval = 0;
for (auto &mod : mods_) {
mod.UpdatePersonalFaction(self, npc_value, faction_id, current_value, temp, this_faction_min, this_faction_max, retval, ignore_default);
}
return retval;
}
void LuaParser::RegisterBug(Client *self, BaseBugReportsRepository::BugReports bug, bool &ignore_default)
{
for (auto &mod : mods_) {