mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 00:53:46 +00:00
Merge branch 'master' into Playerbot
This commit is contained in:
@@ -1139,7 +1139,22 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
}
|
||||
case SMART_ACTION_DIE:
|
||||
{
|
||||
if (me && !me->isDead())
|
||||
if (e.action.die.milliseconds)
|
||||
{
|
||||
if (me && !me->isDead())
|
||||
{
|
||||
me->m_Events.AddEventAtOffset([&]
|
||||
{
|
||||
// We need to check again to see if we didn't die in the process.
|
||||
if (me && !me->isDead())
|
||||
{
|
||||
me->KillSelf();
|
||||
LOG_DEBUG("sql.sql", "SmartScript::ProcessAction: SMART_ACTION_DIE: Creature {}", me->GetGUID().ToString());
|
||||
}
|
||||
}, Milliseconds(e.action.die.milliseconds));
|
||||
}
|
||||
}
|
||||
else if (me && !me->isDead())
|
||||
{
|
||||
me->KillSelf();
|
||||
LOG_DEBUG("sql.sql", "SmartScript::ProcessAction: SMART_ACTION_DIE: Creature {}", me->GetGUID().ToString());
|
||||
|
||||
@@ -641,7 +641,7 @@ bool SmartAIMgr::CheckUnusedActionParams(SmartScriptHolder const& e)
|
||||
case SMART_ACTION_SET_INST_DATA: return sizeof(SmartAction::setInstanceData);
|
||||
case SMART_ACTION_SET_INST_DATA64: return sizeof(SmartAction::setInstanceData64);
|
||||
case SMART_ACTION_UPDATE_TEMPLATE: return sizeof(SmartAction::updateTemplate);
|
||||
case SMART_ACTION_DIE: return NO_PARAMS;
|
||||
case SMART_ACTION_DIE: return sizeof(SmartAction::die);
|
||||
case SMART_ACTION_SET_IN_COMBAT_WITH_ZONE: return NO_PARAMS;
|
||||
case SMART_ACTION_CALL_FOR_HELP: return sizeof(SmartAction::callHelp);
|
||||
case SMART_ACTION_SET_SHEATH: return sizeof(SmartAction::setSheath);
|
||||
|
||||
@@ -559,7 +559,7 @@ enum SMART_ACTION
|
||||
SMART_ACTION_SET_INST_DATA = 34, // Field, Data
|
||||
SMART_ACTION_SET_INST_DATA64 = 35, // Field,
|
||||
SMART_ACTION_UPDATE_TEMPLATE = 36, // Entry, UpdateLevel
|
||||
SMART_ACTION_DIE = 37, // No Params
|
||||
SMART_ACTION_DIE = 37, // Milliseconds
|
||||
SMART_ACTION_SET_IN_COMBAT_WITH_ZONE = 38, // Range (if outside of dungeon)
|
||||
SMART_ACTION_CALL_FOR_HELP = 39, // Radius, With Emote
|
||||
SMART_ACTION_SET_SHEATH = 40, // Sheath (0-unarmed, 1-melee, 2-ranged)
|
||||
@@ -925,6 +925,11 @@ struct SmartAction
|
||||
SAIBool updateLevel;
|
||||
} updateTemplate;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 milliseconds;
|
||||
} die;
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 range;
|
||||
|
||||
@@ -12482,32 +12482,6 @@ uint32 Unit::SpellHealingBonusDone(Unit* victim, SpellInfo const* spellProto, ui
|
||||
|
||||
switch (spellProto->SpellFamilyName)
|
||||
{
|
||||
case SPELLFAMILY_DRUID:
|
||||
{
|
||||
// Nourish vs Idol of the Flourishing Life
|
||||
if (spellProto->SpellFamilyFlags[1] & 0x02000000)
|
||||
{
|
||||
if (AuraEffect const* relicAurEff = GetAuraEffect(64949, EFFECT_0))
|
||||
{
|
||||
DoneAdvertisedBenefit += relicAurEff->GetAmount();
|
||||
}
|
||||
}
|
||||
|
||||
// Lifebloom vs Idol of Lush Moss/Increased Lifebloom Periodic
|
||||
if (spellProto->SpellFamilyFlags[1] & 00000010)
|
||||
{
|
||||
if (AuraEffect const* relicAurEff = GetAuraEffect(60779, EFFECT_0))
|
||||
{
|
||||
DoneAdvertisedBenefit += relicAurEff->GetAmount();
|
||||
}
|
||||
|
||||
if (AuraEffect const* relicAurEff = GetAuraEffect(34246, EFFECT_0))
|
||||
{
|
||||
DoneAdvertisedBenefit += relicAurEff->GetAmount();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_DEATHKNIGHT:
|
||||
{
|
||||
// Impurity
|
||||
|
||||
@@ -439,6 +439,13 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
spellInfo->Effects[EFFECT_0].SpellClassMask = flag96(0x00000040, 0x00000000, 0x00000000);
|
||||
});
|
||||
|
||||
// Idol of the Flourishing Life
|
||||
ApplySpellFix({ 64949 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->Effects[EFFECT_0].SpellClassMask = flag96(0x00000000, 0x02000000, 0x00000000);
|
||||
spellInfo->Effects[EFFECT_0].ApplyAuraName = SPELL_AURA_ADD_FLAT_MODIFIER;
|
||||
});
|
||||
|
||||
ApplySpellFix({
|
||||
34231, // Libram of the Lightbringer
|
||||
60792, // Libram of Tolerance
|
||||
|
||||
Reference in New Issue
Block a user