Add Lua function bindings for IsPet and ToPet

This commit is contained in:
iThorgrim
2026-05-15 10:38:54 +02:00
committed by GitHub
parent 3d3f9ea029
commit 2316377c9d

View File

@@ -416,6 +416,7 @@ ALERegister<Unit> UnitMethods[] =
{ "IsCasting", &LuaUnit::IsCasting }, { "IsCasting", &LuaUnit::IsCasting },
{ "IsStandState", &LuaUnit::IsStandState }, { "IsStandState", &LuaUnit::IsStandState },
{ "IsOnVehicle", &LuaUnit::IsOnVehicle }, { "IsOnVehicle", &LuaUnit::IsOnVehicle },
{ "IsPet", &LuaUnit::IsPet },
// Other // Other
{ "HandleStatFlatModifier", &LuaUnit::HandleStatFlatModifier }, { "HandleStatFlatModifier", &LuaUnit::HandleStatFlatModifier },
@@ -471,6 +472,7 @@ ALERegister<Unit> UnitMethods[] =
{ "ModifyThreatPct", &LuaUnit::ModifyThreatPct }, { "ModifyThreatPct", &LuaUnit::ModifyThreatPct },
{ "ClearThreat", &LuaUnit::ClearThreat }, { "ClearThreat", &LuaUnit::ClearThreat },
{ "ResetAllThreat", &LuaUnit::ResetAllThreat }, { "ResetAllThreat", &LuaUnit::ResetAllThreat },
{ "ToPet", &LuaUnit::ToPet },
{ NULL, NULL } { NULL, NULL }
}; };