Skip to content

Commit d6623fd

Browse files
committed
Fix methods after core changes
1 parent d353a1b commit d6623fd

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

methods/TrinityCore/AuraEffectMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace LuaAuraEffects
3939
*/
4040
int GetAmplitude(Eluna* E, AuraEffect* aurEff)
4141
{
42-
E->Push(aurEff->GetAmplitude());
42+
E->Push(aurEff->GetPeriod());
4343
return 1;
4444
}
4545

methods/TrinityCore/SpellInfoMethods.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ namespace LuaSpellInfo
234234
*/
235235
int GetCasterAuraStateNot(Eluna* E, ElunaSpellInfo* spellInfo)
236236
{
237-
E->Push(spellInfo->GetSpellInfo()->CasterAuraStateNot);
237+
E->Push(spellInfo->GetSpellInfo()->ExcludeCasterAuraState);
238238
return 1;
239239
}
240240

@@ -245,7 +245,7 @@ namespace LuaSpellInfo
245245
*/
246246
int GetTargetAuraStateNot(Eluna* E, ElunaSpellInfo* spellInfo)
247247
{
248-
E->Push(spellInfo->GetSpellInfo()->TargetAuraStateNot);
248+
E->Push(spellInfo->GetSpellInfo()->ExcludeTargetAuraState);
249249
return 1;
250250
}
251251

@@ -754,7 +754,7 @@ namespace LuaSpellInfo
754754
*/
755755
int GetAreaGroupId(Eluna* E, ElunaSpellInfo* spellInfo)
756756
{
757-
E->Push(spellInfo->GetSpellInfo()->AreaGroupId);
757+
E->Push(spellInfo->GetSpellInfo()->RequiredAreasID);
758758
return 1;
759759
}
760760

@@ -1815,7 +1815,7 @@ namespace LuaSpellInfo
18151815
uint32 effIndex = E->CHECKVAL<uint32>(2);
18161816
if (effIndex >= MAX_SPELL_EFFECTS)
18171817
return luaL_argerror(E->L, 2, "effect index out of range");
1818-
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).ValueMultiplier);
1818+
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).Amplitude);
18191819
return 1;
18201820
}
18211821

@@ -1830,7 +1830,7 @@ namespace LuaSpellInfo
18301830
uint32 effIndex = E->CHECKVAL<uint32>(2);
18311831
if (effIndex >= MAX_SPELL_EFFECTS)
18321832
return luaL_argerror(E->L, 2, "effect index out of range");
1833-
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).DamageMultiplier);
1833+
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).ChainAmplitude);
18341834
return 1;
18351835
}
18361836

@@ -1845,7 +1845,7 @@ namespace LuaSpellInfo
18451845
uint32 effIndex = E->CHECKVAL<uint32>(2);
18461846
if (effIndex >= MAX_SPELL_EFFECTS)
18471847
return luaL_argerror(E->L, 2, "effect index out of range");
1848-
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).BonusMultiplier);
1848+
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).BonusCoefficient);
18491849
return 1;
18501850
}
18511851

@@ -1890,7 +1890,7 @@ namespace LuaSpellInfo
18901890
uint32 effIndex = E->CHECKVAL<uint32>(2);
18911891
if (effIndex >= MAX_SPELL_EFFECTS)
18921892
return luaL_argerror(E->L, 2, "effect index out of range");
1893-
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).ChainTarget);
1893+
E->Push(spellInfo->GetSpellInfo()->GetEffect(static_cast<SpellEffIndex>(effIndex)).ChainTargets);
18941894
return 1;
18951895
}
18961896

0 commit comments

Comments
 (0)