Skip to content

Conversation

Treeston
Copy link
Contributor

Full rewrite of the Thaddius encounter. Stuff fixed, among others:

  • Encounter properly resets if the raid wipes at any point during the encounter (fixes and closes Thaddius- naxx #6888)
  • Polarity Shift works properly (fixes and closes [Encounter/Raid] Naxxaramas Thaddius #10126)
  • Visual spells used properly
  • Thaddius is now immobile and will no longer chase the tank
  • Tesla Coil leashes on Feugen/Stalagg work properly (cast chain lightning on raid if dragged off the platform)
  • Achievement criteria for Shocking! fixed to trigger properly, and only on appropriate difficulty (fixes and closes [Achievements] Shocking [10/25] #4751)
  • Way too many other corrections to count

PS: My first full rewrite of a boss AI. Some stuff may be done incorrectly. Please tell me how to do it better. Thanks.

@Treeston Treeston changed the title Creature/BossAI/Thaddius: Complete rewrite Creature/BossAI/Thaddius: Complete rewrite [WIP] Sep 16, 2015
@ghost
Copy link

ghost commented Sep 16, 2015

There are many wrongs in this PR :(

Code style is a train wreck

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional missing break?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think its better to call this on reset as its also called on spawn.

leave constructor to initialize variables.

@Treeston Treeston changed the title Creature/BossAI/Thaddius: Complete rewrite [WIP] Creature/BossAI/Thaddius: Complete rewrite Sep 16, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scriptname wasn't already assigned?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was, actually. Should I remove the statement?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update commands don't do any harm, they are just redundant if the names are there already.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, figured I'd put them in for everything that has an AI from this script.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls remove unneeded sql queries

@joschiwald
Copy link
Contributor

how many stuff is confirmed with sniffs?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain this part, the grid is very likely to be active while the players are inside the room

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just trying to prevent weirdness if the last person to drop from combat is also the last person that hasn't released and leaves grid just as they exit combat (hearthstone etc.)

BossAI does it using the default _EnterCombat, too, which is where I got the idea.

@jackpoz
Copy link
Member

jackpoz commented Sep 18, 2015

I would consider this PR ready for merging.

I would consider this PR ready for testing, maybe with static/dynamic analysis tools too

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this value allow anyone to locally merge this PR and try it out ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It merged fine on a clean TDB for me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I told him to use such huge guid to avoid travis blaming because SET @Cguid = XXXX; and be sure it don't uses existing guids :P ofc when merged it must be changed to unused guids on range 1-213000.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kk, so anyone can test this PR ingame and provide any feedback

@Treeston
Copy link
Contributor Author

Any test results are much appreciated. I tried pretty much every constellation of weird encounter resets that I could think of and the encounter never broke, but I'm sure someone else can come up with something that I didn't think of.

Also, please report stuff, even minor stuff, that doesn't match retail if you have retail experience.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will bug out if the damage is exactly equal to his health (rare cases, but happens).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it just make him "die" if damage is equal to his health (which is what's intended)? I may not be seeing it.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, nevermind that, I got the logic now

@Treeston
Copy link
Contributor Author

Fixed SQL to conform to standards, and moved texts to creature_text instead of using broadcast_text directly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove c style

@Treeston Treeston force-pushed the 3.3.5-thaddius branch 2 times, most recently from c7b81e8 to fecb007 Compare October 10, 2015 15:40
@Treeston
Copy link
Contributor Author

Moved GUIDs again to be unused 2 GUID slots.

@Treeston
Copy link
Contributor Author

Rebased.

@Treeston Treeston force-pushed the 3.3.5-thaddius branch 3 times, most recently from 9646fd3 to 487140d Compare November 2, 2015 17:08
@Treeston Treeston changed the title Creature/BossAI/Thaddius: Complete rewrite Scripts/Naxxramas: Thaddius: Complete rewrite Nov 8, 2015
MitchesD added a commit that referenced this pull request Nov 12, 2015
Scripts/Naxxramas: Thaddius: Complete rewrite
@MitchesD MitchesD merged commit e14e291 into TrinityCore:3.3.5 Nov 12, 2015
This was referenced Nov 12, 2015
@Treeston Treeston deleted the 3.3.5-thaddius branch November 13, 2015 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.