mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 14:05:28 +00:00
refactor(Core/Player): revert equip item aura duration core fix with a spell correction (#22167)
This commit is contained in:
@@ -7176,8 +7176,7 @@ void Player::ApplyEquipSpell(SpellInfo const* spellInfo, Item* item, bool apply,
|
|||||||
|
|
||||||
LOG_DEBUG("entities.player", "WORLD: cast {} Equip spellId - {}", (item ? "item" : "itemset"), spellInfo->Id);
|
LOG_DEBUG("entities.player", "WORLD: cast {} Equip spellId - {}", (item ? "item" : "itemset"), spellInfo->Id);
|
||||||
|
|
||||||
//Ignore spellInfo->DurationEntry, cast with -1 duration
|
CastSpell(this, spellInfo, true, item);
|
||||||
CastCustomSpell(spellInfo->Id, SPELLVALUE_AURA_DURATION, -1, this, true, item);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5131,6 +5131,12 @@ void SpellMgr::LoadSpellInfoCorrections()
|
|||||||
spellInfo->ChannelInterruptFlags &= ~AURA_INTERRUPT_FLAG_TURNING;
|
spellInfo->ChannelInterruptFlags &= ~AURA_INTERRUPT_FLAG_TURNING;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// The Green Tower
|
||||||
|
ApplySpellFix({ 18097 }, [](SpellInfo* spellInfo)
|
||||||
|
{
|
||||||
|
spellInfo->DurationEntry = sSpellDurationStore.LookupEntry(21); // -1
|
||||||
|
});
|
||||||
|
|
||||||
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
|
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
|
||||||
{
|
{
|
||||||
SpellInfo* spellInfo = mSpellInfoMap[i];
|
SpellInfo* spellInfo = mSpellInfoMap[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user