feat(SpellEntry): Add new "Set" methods for updating spell (#290)

This commit is contained in:
iThorgrim
2025-08-29 05:05:45 +02:00
committed by GitHub
parent 84d1c0cceb
commit 6fd81ea0e6
3 changed files with 1123 additions and 1 deletions

View File

@@ -44,7 +44,6 @@
#include "GitRevision.h" #include "GitRevision.h"
#include "GroupMgr.h" #include "GroupMgr.h"
#include "ScriptedCreature.h" #include "ScriptedCreature.h"
#include "SpellInfo.h"
#include "WeatherMgr.h" #include "WeatherMgr.h"
#include "Battleground.h" #include "Battleground.h"
#include "MotionMaster.h" #include "MotionMaster.h"

View File

@@ -1619,6 +1619,67 @@ ElunaRegister<SpellEntry> SpellEntryMethods[] =
{ "GetRuneCostID", &LuaSpellEntry::GetRuneCostID }, { "GetRuneCostID", &LuaSpellEntry::GetRuneCostID },
{ "GetEffectBonusMultiplier", &LuaSpellEntry::GetEffectBonusMultiplier }, { "GetEffectBonusMultiplier", &LuaSpellEntry::GetEffectBonusMultiplier },
// Setters
{ "SetCategory", &LuaSpellEntry::SetCategory },
{ "SetDispel", &LuaSpellEntry::SetDispel },
{ "SetMechanic", &LuaSpellEntry::SetMechanic },
{ "SetAttributes", &LuaSpellEntry::SetAttributes },
{ "SetAttributesEx", &LuaSpellEntry::SetAttributesEx },
{ "SetAttributesEx2", &LuaSpellEntry::SetAttributesEx2 },
{ "SetAttributesEx3", &LuaSpellEntry::SetAttributesEx3 },
{ "SetAttributesEx4", &LuaSpellEntry::SetAttributesEx4 },
{ "SetAttributesEx5", &LuaSpellEntry::SetAttributesEx5 },
{ "SetAttributesEx6", &LuaSpellEntry::SetAttributesEx6 },
{ "SetAttributesEx7", &LuaSpellEntry::SetAttributesEx7 },
{ "SetStances", &LuaSpellEntry::SetStances },
{ "SetStancesNot", &LuaSpellEntry::SetStancesNot },
{ "SetTargets", &LuaSpellEntry::SetTargets },
{ "SetTargetCreatureType", &LuaSpellEntry::SetTargetCreatureType },
{ "SetRequiresSpellFocus", &LuaSpellEntry::SetRequiresSpellFocus },
{ "SetFacingCasterFlags", &LuaSpellEntry::SetFacingCasterFlags },
{ "SetCasterAuraState", &LuaSpellEntry::SetCasterAuraState },
{ "SetTargetAuraState", &LuaSpellEntry::SetTargetAuraState },
{ "SetCasterAuraStateNot", &LuaSpellEntry::SetCasterAuraStateNot },
{ "SetTargetAuraStateNot", &LuaSpellEntry::SetTargetAuraStateNot },
{ "SetCasterAuraSpell", &LuaSpellEntry::SetCasterAuraSpell },
{ "SetTargetAuraSpell", &LuaSpellEntry::SetTargetAuraSpell },
{ "SetExcludeCasterAuraSpell", &LuaSpellEntry::SetExcludeCasterAuraSpell },
{ "SetExcludeTargetAuraSpell", &LuaSpellEntry::SetExcludeTargetAuraSpell },
{ "SetRecoveryTime", &LuaSpellEntry::SetRecoveryTime },
{ "SetCategoryRecoveryTime", &LuaSpellEntry::SetCategoryRecoveryTime },
{ "SetInterruptFlags", &LuaSpellEntry::SetInterruptFlags },
{ "SetAuraInterruptFlags", &LuaSpellEntry::SetAuraInterruptFlags },
{ "SetChannelInterruptFlags", &LuaSpellEntry::SetChannelInterruptFlags },
{ "SetProcFlags", &LuaSpellEntry::SetProcFlags },
{ "SetProcChance", &LuaSpellEntry::SetProcChance },
{ "SetProcCharges", &LuaSpellEntry::SetProcCharges },
{ "SetMaxLevel", &LuaSpellEntry::SetMaxLevel },
{ "SetBaseLevel", &LuaSpellEntry::SetBaseLevel },
{ "SetSpellLevel", &LuaSpellEntry::SetSpellLevel },
{ "SetPowerType", &LuaSpellEntry::SetPowerType },
{ "SetManaCost", &LuaSpellEntry::SetManaCost },
{ "SetManaCostPerlevel", &LuaSpellEntry::SetManaCostPerlevel },
{ "SetManaPerSecond", &LuaSpellEntry::SetManaPerSecond },
{ "SetManaPerSecondPerLevel", &LuaSpellEntry::SetManaPerSecondPerLevel },
{ "SetSpeed", &LuaSpellEntry::SetSpeed },
{ "SetStackAmount", &LuaSpellEntry::SetStackAmount },
{ "SetEquippedItemClass", &LuaSpellEntry::SetEquippedItemClass },
{ "SetEquippedItemSubClassMask", &LuaSpellEntry::SetEquippedItemSubClassMask },
{ "SetEquippedItemInventoryTypeMask", &LuaSpellEntry::SetEquippedItemInventoryTypeMask },
{ "SetSpellIconID", &LuaSpellEntry::SetSpellIconID },
{ "SetActiveIconID", &LuaSpellEntry::SetActiveIconID },
{ "SetSpellPriority", &LuaSpellEntry::SetSpellPriority },
{ "SetManaCostPercentage", &LuaSpellEntry::SetManaCostPercentage },
{ "SetStartRecoveryCategory", &LuaSpellEntry::SetStartRecoveryCategory },
{ "SetStartRecoveryTime", &LuaSpellEntry::SetStartRecoveryTime },
{ "SetMaxTargetLevel", &LuaSpellEntry::SetMaxTargetLevel },
{ "SetSpellFamilyName", &LuaSpellEntry::SetSpellFamilyName },
{ "SetMaxAffectedTargets", &LuaSpellEntry::SetMaxAffectedTargets },
{ "SetDmgClass", &LuaSpellEntry::SetDmgClass },
{ "SetPreventionType", &LuaSpellEntry::SetPreventionType },
{ "SetSchoolMask", &LuaSpellEntry::SetSchoolMask },
{ "SetRuneCostID", &LuaSpellEntry::SetRuneCostID },
{ NULL, NULL } { NULL, NULL }
}; };

File diff suppressed because it is too large Load Diff