-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripts/BlackrockDepths: fix Ironhand Guardian #21816
Scripts/BlackrockDepths: fix Ironhand Guardian #21816
Conversation
I don't see any call to put Ironhand Guardians in combat when the boss aggro, and stop the combat when it dies. Also according to some videos they keep casting once the boss dies without putting players in combat https://youtu.be/GR_CQ-eC6ns?t=32m26s To do that, better to use, the event SMART_EVENT_UPDATE |
The call to have them start casting is the SetData from instance_blackrock_depths.cpp line 245 and line 455. I agree from the video they continue the casting and apparently doesn't cause the player to be in combat. Also from the video shows that they don't start casting before Magmus is engaged. So dropping line 247-248 from instance_blackrock_depths.cpp would keep them going, but leave the in combat issue to be fixed. |
...rver/scripts/EasternKingdoms/BlackrockMountain/BlackrockDepths/instance_blackrock_depths.cpp
Outdated
Show resolved
Hide resolved
src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockDepths/boss_magmus.cpp
Outdated
Show resolved
Hide resolved
src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockDepths/boss_magmus.cpp
Outdated
Show resolved
Hide resolved
@Killyana I've tried to adapt the patches to keep the Ironhand Guardians casting and clearing CombatStatus "after" each cast. This should enable a player that (move out of the area of effect) to go out of combat when the spell stops. |
Recommended PR title format: Scripts/BlackrockDepths: fix Ironhand Guardian using phases |
When integrating the improvements mentioned above. Should I put a commit on top or squash the entire set into one commit? |
you don't need to squash, we squash on merge |
src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockDepths/boss_magmus.cpp
Outdated
Show resolved
Hide resolved
src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockDepths/boss_magmus.cpp
Outdated
Show resolved
Hide resolved
|
||
npc_ironhand_guardianAI(Creature* creature) : ScriptedAI(creature) | ||
{ | ||
_instance = me->GetInstanceScript(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing initialize _lastState here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not realy needed, but you can use octor list to initialize it.
like:
npc_ironhand_guardianAI(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()), _lastState(0) { }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to any TC member with label management access: |
src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockDepths/boss_magmus.cpp
Outdated
Show resolved
Hide resolved
|
||
void UpdateAI(uint32 uiDiff) override | ||
{ | ||
if (_lastState == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing UpdateVictim() call, this creature will never evade?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ironhand Guardian should not evade. When the party has entered the should keep casting Gout of Flame. Whether it should have a UpdateVictim anyways I am unsure about.
@Keader is there anything left to change in this PR or can it be merged ? |
can be merged i belive |
https://youtu.be/rhhfpQGXnmY?t=81 I believe they shouldn't have threat list at all + the spell shouldn't generate threat(shown in the video above). (#23435) |
d2082fe
to
b37b353
Compare
…ast. (TrinityCore#21816) (cherry picked from commit 4529a94)
In BlackrockDepths in the Iron Hall Ironhand Guardians in the sides
should only cast "Gout of Flame" during the fight with Magmus (src:
classicdb/database#715).
Changes proposed:
only when battling Magmus. As descriped in
Magmus Blackrock Depths classicdb/database#715.
Target branch(es): 335
Issues addressed: No issue open on this.
Tests performed: Patch is based on upstream commit 1e25b21 (DB/Creature:
Scarlet Infantryman equipments). This builds builds and described functionality
validated using:
.gm on
.cheat god on
.tele blackrock
.go creature magmus
/target Magmus
Known issues and TODO list: No known issues with this patch. Although it
probably would be prettier to move the SAI to BlackrockDepths scripts instead.