vmangos / core

Progressive Vanilla Core aimed at all versions from 1.2 to 1.12
GNU General Public License v2.0
691 stars 491 forks source link

🦂 [Bug] NPC Obsidian Destroyer 15338 broken AI #2042

Open Daribon opened 1 year ago

Daribon commented 1 year ago

🦂 Bug report - Dungeon

Currently Obsidian destroyer casts no spells and has full mana when out of combat. WoW_ke8zINr6MT

It is scripted but does nothing atm: https://github.com/vmangos/core/blob/a27f97d2baf351bb95f31bed2a196e50d70c104b/src/scripts/kalimdor/silithus/ruins_of_ahnqiraj/ruins_of_ahnqiraj.cpp#L391

Expected behavior

https://youtu.be/2M9UaWeIh8s?t=1565 https://youtu.be/9vBRJR5lFMk?t=391

In this video you can see the Obsidian destroyer drain mana off the mage without the mage using any ability: https://youtu.be/hiDR6HKzx3Y?t=1280

Video from 2006: https://www.youtube.com/watch?v=KqdV2TJCawg

Should have 0 mana and only gain mana when in combat.

Currently it starts at 100% mana changes to 0 mana when it goes into combat. NPC should cast spell to drain mana from players in order for the NPC to gain mana.

Steps to reproduce

  1. .gm on
  2. .go creature 301189
  3. .gm off
  4. Profit

Version & Environment

Client Version: 1.12.1.5875

Commit Hash: https://github.com/vmangos/core/commit/a27f97d2baf351bb95f31bed2a196e50d70c104b

OS Client: Windows 11 Pro N 10.0.22621.1413 OS Server: Windows 11 Pro N 10.0.22621.1413

Crashlog

GoonBoiBarry commented 1 year ago

The spell part of this issue is caused by two rows in the db spell_effect_mod table with the id 25755. If you delete those two rows the spell works normally.