Commit Graph

11770 Commits

Author SHA1 Message Date
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
SnapperRy
eb1a7297cf Core/Wintergrasp: cleanup and codestyle. 2016-10-08 21:13:05 +02:00
jackpoz
2edfedc2b6 Scripts/Azjol-Nerub: fix static analysis issues 2016-10-08 19:21:40 +02:00
Kittnz
eee7fa3fa7 Core/Scripts: Initialize rnd and remove where it was not needed 2016-10-08 16:43:08 +02:00
Kittnz
963278459a Core/Event: Pirate Day Music during the event 2016-10-08 15:49:18 +02:00
Kittnz
e3560f3f51 Core/Event: Add Darkmoon Fair Music during the event 2016-10-08 15:43:13 +02:00
Kittnz
19f8acdb61 Core/Event: Add Midsummer Music during the event 2016-10-08 15:38:17 +02:00
SnapperRy
7ce3811913 Remove unused variable. 2016-10-08 14:26:17 +02:00
SnapperRy
a0c9d33ed6 Battlefield/Wintergrasp: improvements:
- Move Wintergrasp Keep guard spawns from core to db, removing all duplicates in the meanwhile.
- Add Alliance Brigadier General inside the relic room.

Closes #7593.
2016-10-08 14:16:05 +02:00
SnapperRy
d72b025fcb Core/Wintergrasp: fix Defend the Siege quests.
Closes #7953.
2016-10-08 03:54:09 +02:00
ariel-
b93ee312fa Core/Auras: prevent stack overflow while processing SPELL_EFFECT_ADD_EXTRA_ATTACKS 2016-10-07 12:52:01 -03:00
ariel-
d078029124 Revert "Core/Unit: prevent m_extraAttacks underflow. Fixes a freeze with SPELL_EFFECT_ADD_EXTRA_ATTACKS"
This reverts commit f09e7cbbfe.
2016-10-07 12:50:08 -03:00