Commit Graph

11781 Commits

Author SHA1 Message Date
treeston
59cbea00bc Scripts/AzjolNerub: Make pulling Anub'arak a bit cleaner. 2016-10-15 18:29:38 +02:00
treeston
1ecdea5374 Fix _DespawnAtEvade for other creatures to actually respawn said other creatures.
Also fix add aggro for Hadronox.
Fixes and closes #18012.
2016-10-15 18:18:56 +02:00
treeston
aab7abfd04 Core/Creature: Fix respawn logic to call reset react state BEFORE calling Reset(). Fixes Krik'thir behavior after a wipe (and maybe some others).
Fixes and closes #18011.
2016-10-15 13:19:17 +02:00
tkrokli
86759c4537 [3.3.5] Core/Scripts: move npc_braug_dimspirit to SAI (#17853)
Additional change: The answers have been changed from containing only names
to include the text ` is my answer.` from the matching lines in `broadcast_text`.

- added DB creature_text entries for Braug Dimspirit
- added DB gossip_menu_option entries for this NPC
- implemented NPC `Say` line in reply to the wrong answers
- avoiding gossip exploits by turning off npcflags during talk
- added conditions for showing gossip depending on quest status
- removed deprecated SD comments in zone_stonetalon_mountains.cpp
2016-10-15 02:16:40 +02:00
tkrokli
028a7b8e45 Core/Scripts: move npc_saat to DB (#17813)
The core script only contains gossip handling + conditions.
- remove script from file the_black_morass.cpp
- thereby removing 1 line of hardcoded text
- remove redundant SD2 comments in header
- add SAI, gossip and conditions to DB
2016-10-15 02:13:37 +02:00
tkrokli
b651bf271b [WIP] Core/Scripts: Gnomish Mind Control Cap and Gnomish Universal Remote (#17374) 2016-10-15 01:46:19 +02:00
SnapperRy
84439ff4d7 Remove deprecated procEx usage. 2016-10-15 00:43:07 +02:00
ariel-
303066509d Core/AI: initial support for monster sparring (#17673) 2016-10-15 00:20:37 +02:00
Keader
8fb2dce017 Core/Scripts: Implemented right Snobold Vassal behavior on Gormok fight. (#17934) 2016-10-15 00:01:58 +02:00
iridinite
6dc0a9f04a [3.3.5] AHBot Characters (#17885) 2016-10-14 23:52:26 +02:00
Keader
f0cd28be3d Core/Unit: Remove incorrect check that dont allow units attack your vehicle/passenger (#17932) 2016-10-14 23:41:38 +02:00
SnapperRy
727f77ec6a Core/SAI: always use DespawnOrUnsummon() for SMART_ACTION_FORCE_DESPAWN.
SmartAI uses that same method internally, so there's no need to handle it in two different ways.

Does not affect functionality, but prevents useless SAI error log in case the target creature is not using SAI.
2016-10-14 22:36:22 +02:00
Gustavo
8e82d8a9e7 Core/Scripts Boss Lady DeathWhisper improvements (#17389) 2016-10-14 21:44:49 +02:00
Kittnz
e0c2482fa1 Core/Event: Change Midsummer Music container to vector 2016-10-14 18:37:49 +02:00
Kittnz
30a3a93ef9 Core/Event: Change Midsummer Music to search grid only 2016-10-14 18:05:06 +02:00
SnapperRy
fdc4ab4ab4 Script/Creature: Scarshield Infiltrator/Vaelan. 2016-10-14 17:49:55 +02:00
ariel-
3e596376a7 Core/SmartScripts: fixup SMART_EVENT_FLAG_WHILE_CHARMED behaviour to only mean charmed creatures (#17738 follow-up)
Unit::IsControlledByPlayer is a expected value for TempSummons (like some triggers used in quests, summoned by spells).
Previous logic broke a lot of quests which use triggers to do stuff.

Allow JustSummoned and events linked from other events with flag set also in charmed (prevents breaking event chains)
Allow vehicles (needed for vehicles with SmartAI, eg Iron Rune Constructs and You: Rocket Jumping)
2016-10-14 03:59:13 -03:00
ariel-
b1777979c3 Core/Unit: disallow parry for totems 2016-10-14 02:14:19 -03:00
ariel-
271dd0788d Core/AI: added container independent wrappers for WorldObject::GetxxxInGrid 2016-10-13 22:44:59 -03:00
ariel-
4b5350c0a6 Core/Entities: fix dynamic linking 2016-10-13 22:28:08 -03:00
SnapperRy
8f09c7e867 Revert "Core/DBC: fix wrong field type for ItemLimitCategory.dbc."
I messed up, sorry.

This reverts commit 857c7bd06c.
2016-10-13 22:38:08 +02:00
SnapperRy
f9068a02f0 Core/Item: fix wrong error message triggered when trying to equip two items with the same ItemLimitCategory. 2016-10-13 20:36:43 +02:00
SnapperRy
857c7bd06c Core/DBC: fix wrong field type for ItemLimitCategory.dbc.
Fixes looting of items whose unique status only affects number of equipped items, and not number of items owned.
2016-10-13 20:36:17 +02:00
SnapperRy
5c419949b6 Core/Spell: overwrite DBC RangeEntry values for spells Concussive Barrage, Desecration and Polymorph.
Closes #17545.
2016-10-13 20:27:07 +02:00
ariel-
1667dd3b7a Core/Entities: extend available containers for WorldObject::GetxxxInGrid 2016-10-13 01:23:02 -03:00
ariel-
318f21b391 Core/Spells: Make slice and dice positive. Was breaking stealth.
This whole positive check needs some generic solution
2016-10-12 22:59:29 -03:00
ariel-
4a1f6eb3b1 Core/Scripts: Fix runtime error 2016-10-12 22:58:29 -03:00
SnapperRy
bdb08fba6e Script/Quest: Stop the Ascension! 2016-10-12 17:12:07 +02:00
ariel-
8167d6d4a0 Core/Spell: do not automatically set proc Family Name if no Family Flags present
Closes #18075
2016-10-12 10:01:38 -03:00
ariel-
aaa1a43204 Core/Spells: fix auto repeat spells triggering auras
Auto repeat spells are casted as triggered and didn't register procs properly if the aura can't proc with triggered
2016-10-12 01:32:40 -03:00
ariel-
449ec0d6ff Core/Auras: don't ignore SPELL_ATTR3_ONLY_TARGET_PLAYERS in area auras.
Also, start abusing the arbitrary containers for searchers introduced in 8775f8b28a
2016-10-11 22:01:42 -03:00
Shauren
1c7f099297 Core/Items: Defined all item flags
(cherry picked from commit ef29f32965)
2016-10-11 19:46:29 -03:00
SnapperRy
41445e0d3e Core/Loot: revert unique item check introduced in ea69115.
Proven to be wrong in its current form. Will reintroduce later either in the same method or via db conditions.
2016-10-12 00:13:46 +02:00
SnapperRy
fffeae0da2 Core/Loot: limit unique items check introduced in ea69115 to affect only items that start a quest.
Turns out epic and legendary items are excluded from this limitation (or it could be just instanced content that is immune to this). Other qualities are affected as normal. Sorry for the mishap.
2016-10-11 23:36:49 +02:00
ariel-
d685c7079d Core/Scripts: Implemented Blessing of the Eternals Earthliving proc chance increase 2016-10-11 17:59:34 -03:00
SnapperRy
387b18775d Script/Quest: Apply Heat and Stir.
Enjoy one of the most frustrating quests in Northrend!
2016-10-11 16:59:28 +02:00
ariel-
b8a1a18a5a Core/Creature: Call SetSpawnHealth after JustReachedHome in HomeMovementGenerator
Fixes issues with quests that rely on this behaviour (eg Free your Mind)

Also updated SetSpawnHealth so it doesn't do anything in case spawn is manual (SetHealth(GetHealth()) does modify things depending on deathstate)
2016-10-11 01:43:14 -03:00
ariel-
e2a8cf6809 Core/SmartAI: There's a function for that 2016-10-10 19:05:28 -03:00
ariel-
f749dea8b2 Core/Scripts: don't check ghoul each update. Send proper text packet, so client replaces %s with DK name 2016-10-10 19:05:06 -03:00
ariel-
a129b41f3d Core/Spells: fix runtime error
Partial revert of 11650e4008
2016-10-10 16:31:47 -03:00
ariel-
d429273410 Core/Scripts: fix warning reported by MSVC 2016-10-10 16:23:12 -03:00
SnapperRy
5267381e39 Core/SAI: don't reset event phase when npc evades/resets.
The scripts themselves should take care of that.
2016-10-10 13:58:07 +02:00
ariel-
4cdbc1a09b Core/Spell: Fix 2 more off by one probability calc and duplicated logic in spell hit roll 2016-10-09 20:18:07 -03:00
Krudor
73a72fb7d3 Core/Spells: Effect leap back fix (#18057)
* Fixed unintentional typo?

Seemed to fix the issues related to the effect for the spells I tried.
Sometimes the caster triggers leapback onto targets, and with the old
code, it instead made the caster leap back instead of its targets

(cherry picked from commit 08aab73c7f)
2016-10-09 21:57:36 +02:00
ariel-
10437a1e2e Core/Unit: enabled parry for all creatures, not only humanoids
If there's some creature that _shouldn't_ parry, use the `flags_extra` field in `creature_template` table
2016-10-09 01:55:14 -03:00
ariel-
86903f7015 Core/Auras: moved check for CC auras out of proc handler, and fixed its logic 2016-10-09 01:48:48 -03:00
ariel-
666422d827 Core/Scripts: added missing null checks for DamageInfo struct 2016-10-08 22:20:49 -03:00
SnapperRy
b8bb1545ec Core/Wintergrasp: fix ownership of workshops at the beginning of a new battle.
Those two, together with the two workshop in the Keep, always belong to the defender team. The SouthEast and SouthWest ones always belong to the attacker team.
2016-10-09 00:18:42 +02:00
ariel-
abe514d548 Core/Scripts: fix some copy paste and indentation mistake in Chimera Shot script 2016-10-08 17:13:27 -03:00
ariel-
11650e4008 Core/Scripts: updated Lock and Load script with new hooks, DamageInfo might be null, so check for that too 2016-10-08 16:48:03 -03:00