Repository navigation
Conversation
| case Events::PowerOverload: | ||
| { | ||
| DoCastSelf(Spells::PowerOverload); | ||
| events.Repeat(27700s); |
There was a problem hiding this comment.
should be 27700ms or 27s + 700ms
|
|
||
| void Register() override | ||
| { | ||
| OnEffectPeriodic += AuraEffectPeriodicFn(spell_watcher_irideus_siphon_power::PeriodicTick, EFFECT_0, SPELL_AURA_OBS_MOD_POWER); |
There was a problem hiding this comment.
Effect 0 of 389056 is SPELL_AURA_DUMMY on the Power Device while the periodic SPELL_AURA_OBS_MOD_POWER is effect 1, on the caster, which will never bind due to dbc effect data not matching
| if (aurApp->GetBase()->GetId() != Spells::AblativeBarrier) | ||
| return; | ||
|
|
||
| if (aurApp->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT) |
There was a problem hiding this comment.
if the group doesn't destroy 3 devices in time, the aura expires with AURA_REMOVE_BY_EXPIRE, this will return early and the boss will become dummy
| return; | ||
|
|
||
| if (aurApp->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT) | ||
| return; |
There was a problem hiding this comment.
_EnterEvadeMode() calls RemoveAurasOnEvade(), which uses BY_DEFAULT as well, a wipe during the barrier will likely call the talk, schedule events, fire sparks, etc., it's minor since it despawns anyway but
| } }; | ||
|
|
||
| at->SetTimeToTargetScale(defaultTimeToTargetScale); | ||
| at->SetOverrideScaleCurve(points, 2); |
There was a problem hiding this comment.
second argument is startTimeOffset, not number of points, curve progress is (TimeSinceCreated - StartTimeOffset) / TimeToTargetScale, any resize happens at least 4s after creation, so progress is already 1 and the field snaps to its new size instead of growing over resizeTime, dropping 2 on the first call and pass at->GetTimeSinceCreated() on the resize should suffice
|
|
||
| void SpellHitTarget(WorldObject* target, SpellInfo const* spellInfo) override | ||
| { | ||
| if (spellInfo->Id == Spells::PowerOverload) |
There was a problem hiding this comment.
389179 uses MaxTargets 2, both talks are called twice with 2 people in the group
|
|
||
| Talk(Texts::BarrierRemoved); | ||
| me->SetReactState(REACT_AGGRESSIVE); | ||
|
|
There was a problem hiding this comment.
Siphon Power is a 40s channel, nothing stops it when it drops and UpdateAI returns while the boss casts, you likely need me->InterruptNonMeleeSpells(true) here
|
|
||
| void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) const | ||
| { | ||
| if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE || GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_ENEMY_SPELL) |
There was a problem hiding this comment.
remove mode cant be EXPIRE and ENEMY_SPELL at once, use &&
| return; | ||
|
|
||
| if (Unit* caster = GetCaster()) | ||
| caster->CastSpell(GetTarget()->GetPosition(), Spells::PowerFieldAreaTrigger, CastSpellExtraArgsInit{ |
There was a problem hiding this comment.
wrong target, 389180 effect 0 is TARGET_DEST_TARGET_ANY, it needs a unit target, not position, position is obtained internally through the target
|
|
||
| void HandleOnHit() const | ||
| { | ||
| GetCaster()->CastSpell(*GetHitDest(), Spells::SparkVolleyMissile, CastSpellExtraArgsInit{ |
There was a problem hiding this comment.
383952 is TARGET_DEST_CASTER / TARGET_DEST_DEST_RANDOM, OnHit can never fire because no unit is hit
|
|
||
| void HandleOnHit() const | ||
| { | ||
| GetCaster()->CastSpell(*GetHitDest(), Spells::SparkVolleyMissile, CastSpellExtraArgsInit{ |
There was a problem hiding this comment.
GetHitDest() returns nullptr outside effect hooks, use OnEffectHit in any case
| DELETE FROM `smart_scripts` WHERE `entryorguid` IN (196717, 196712) AND `source_type`=0; | ||
| INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `Difficulties`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param_string`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `action_param_string`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_param_string`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES | ||
| (196712, 0, 0, 1, '', 63, 0, 100, 0, 0, 0, 0, 0, 0, '', 85, 389219, 0, 0, 0, 0, 0, 0, NULL, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - On Just Created - Cast Self \'Containment Apparatus\''), | ||
| (196712, 0, 1, 2, '', 61, 0, 100, 0, 0, 0, 0, 0, 0, '', 69, 1, 0, 0, 0, 0, 0, 0, NULL, 5, 100, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - On Linked Event - Move To Hostile Random'), |
There was a problem hiding this comment.
when the just-created event fires, the device's threat list is still empty (AI init runs in AddToWorld, before InitSummon reaches BossAI::JustSummoned)
it's likely that SMART_TARGET_HOSTILE_RANDOM finds nothing and the move never happens by then
| (196712, 0, 3, 0, '', 0, 0, 100, 0, 6000, 6000, 6000, 8000, 0, '', 11, 389443, 0, 0, 0, 0, 0, 0, NULL, 5, 100, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - In Combat - Cast \'Purifying Blast\' to Hostile Random'), | ||
| (196712, 0, 4, 5, '', 2, 0, 100, 1, 0, 1, 0, 0, 0, '', 85, 389446, 1, 0, 0, 0, 0, 0, NULL, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - At 1% HP - Cast \'Nullifying Pulse\''), | ||
| (196712, 0, 5, 0, '', 61, 0, 100, 0, 0, 0, 0, 0, 0, '', 41, 3500, 0, 0, 0, 0, 0, 0, NULL, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - On Linked Event - Despawn'), | ||
| (196717, 0, 0, 0, '', 8, 0, 100, 1, 389056, 0, 0, 0, 0, '', 85, 389092, 0, 0, 0, 0, 0, 0, NULL, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 'Power Device - On Spell hit - Cast Self Siphon Power'); |
There was a problem hiding this comment.
SMART_EVENT_FLAG_NOT_REPEATABLE is only reset by SmartScript::OnReset() and the Power Device never gets in combat, a wipe will make it never react to 389056 again on the next pull, careful
| INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `Difficulties`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param_string`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `action_param_string`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_param_string`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES | ||
| (196712, 0, 0, 1, '', 63, 0, 100, 0, 0, 0, 0, 0, 0, '', 85, 389219, 0, 0, 0, 0, 0, 0, NULL, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - On Just Created - Cast Self \'Containment Apparatus\''), | ||
| (196712, 0, 1, 2, '', 61, 0, 100, 0, 0, 0, 0, 0, 0, '', 69, 1, 0, 0, 0, 0, 0, 0, NULL, 5, 100, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - On Linked Event - Move To Hostile Random'), | ||
| (196712, 0, 2, 3, '', 61, 0, 100, 0, 0, 0, 0, 0, 0, '', 42, 1, 0, 0, 0, 0, 0, 0, NULL, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 'Nullification Device - On Just Created - Set Invincibility HP 1'), |
There was a problem hiding this comment.
SmartAIMgr logs "Link Event 3 not found or invalid" at startup, it should be 0
| } | ||
| case Events::Barrier: | ||
| { | ||
| DoCastSelf(Spells::AblativeBarrier, CastSpellExtraArgs(TRIGGERED_FULL_MASK).AddSpellMod(SPELLVALUE_AURA_STACK, 3)); |
There was a problem hiding this comment.
the 3 value is 383840 effect 1 ("grants himself $s2 applications"), so name it or read it from the SpellInfo
There was a problem hiding this comment.
also use TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR preferably? unless you need an additional bit
Nyr97
left a comment
There was a problem hiding this comment.
few minor details, and some biggies to fix otherwise the encounter cannot be properly tested
| } | ||
| case Events::Barrier: | ||
| { | ||
| DoCastSelf(Spells::AblativeBarrier, CastSpellExtraArgs(TRIGGERED_FULL_MASK).AddSpellMod(SPELLVALUE_AURA_STACK, 3)); |
There was a problem hiding this comment.
also use TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR preferably? unless you need an additional bit
Changes proposed:
Tests performed:
Tested in-game