Commit Graph

18997 Commits

Author SHA1 Message Date
ariel-
bdbd5b0961 Core/Player: Misc codestyle 2016-07-19 11:57:29 -03:00
ForesterDev
a2495002e5 Core/UnitAI: Removed unneccessary null checks in SpellTargetSelector. CID 1357405 (#17630) 2016-07-19 11:40:57 +02:00
ForesterDev
22c4e87ebb Core/Entities: add missing null pointer checks in HandleProcTriggerSpell. CID 1356245 (#17629) 2016-07-19 10:46:30 +02:00
ForesterDev
d57c177d0b Scripts / Naxxramas : add missing null pointer check. Fixes CID 1354738 (#17628) 2016-07-19 10:41:42 +02:00
SnapperRy
d4e15f1aac Core/Mail: implement a way to specify NPC sender for mails when they should be different from the quest ender (#17601) 2016-07-19 09:02:01 +02:00
ariel-
2feb53ecb6 Core/Entities: implement SPELL_AURA_MOD_CRIT_CHANCE_FOR_CASTER, fixes talent Point of no Escape 2016-07-19 02:57:01 -03:00
ariel-
ef85d01746 Core/Entities: Readded check removed in d7460887c8, caused flying ghost players to not move if they died during a root effect, root flag was never cleared clientside and impeded movement. 2016-07-19 02:31:28 -03:00
ariel-
59f71f915a Core/Loot: fix bug introduced in a49544cc18 in which creatures only having gold wouldn't show lootable sparks, and thus couldn't be looted 2016-07-19 02:09:41 -03:00
ccrs
b008b677ad Core/UnitAI: #17309 follow-up (#17608)
* Core/UnitAI: SelectTarget correction

Set CurrentVictim as first element on targetList if necessary, which is then filled with the threatlist elements that satisfy the predicate.
2016-07-18 20:30:58 +02:00
Gustavo
f826ecb4b2 Core/AI Prevent bosses respawn when BossState is set to DONE (#17616) 2016-07-18 12:35:11 +02:00
ariel-
028e473ec4 Core/Player: fix crash
Closes  #17073
2016-07-16 21:38:24 -03:00
ariel-
26d30d27e4 Core/OutdoorPvP: fix bad storage of guids, spawnId must be saved because that's what is expected
Closes #8597
2016-07-16 21:20:51 -03:00
ariel-
1a52c1cd36 Core/Misc: remove two synch queries and replace them with CharacterInfo cache 2016-07-16 20:51:32 -03:00
ariel-
2efd40b804 Core/Misc: remove unused function prototype 2016-07-16 20:38:34 -03:00
ariel-
94fb921cea Core/LFGMgr: fix race condition in _SaveToDB 2016-07-16 20:29:46 -03:00
ariel-
b991f3e13d Core/ArenaTeamMgr: fix race condition in LoadArenaTeams 2016-07-16 20:29:21 -03:00
ariel-
6c0b98f24c Core/Account: Fix race condition in AccountMgr::UpdateAccountAccess 2016-07-16 20:17:16 -03:00
ccrs
63e62117ea Core/UnitAI: SelectTarget correction (#17309)
Core/UnitAI: SelectTarget correction - have current victim always be first element of target list
2016-07-17 01:12:57 +02:00
ariel-
5251dadf29 Core/World: fix race condition in _UpdateRealmCharCount 2016-07-16 20:11:15 -03:00
ariel-
dda338ece6 Core/Player: silence warning 2016-07-16 16:40:39 -03:00
ariel-
7c71417993 Core/Channel: restore accidentally deleted line, fixes channels not honoring ownership setting 2016-07-16 16:33:02 -03:00
SnapperRy
b4b3c10c69 Core/Conditions: implement CONDITION_DAILY_QUEST_DONE to check whether or not a daily quest has been completed by a player in that day.
Also use it to fix two quest chains broken in commit 7905651. Should be the only ones of their kind.
2016-07-16 21:10:54 +02:00
Keader
cee1c0789a Core/Scripts: Hallow's End Pumpkin Treat
Add all 6 spells available from item 20557,
Hallow's End Pumpkin Treat:
- Hallow's End Candy, Orange Giant (24924)
- Hallow's End Candy, Skeleton (24925)
- Hallow's End Candy, Pirate (24926)
- Hallow's End Candy, Ghost (24927)
- Hallow's End Candy, Female Defias Pirate (44742)
- Hallow's End Candy, Male Defias Pirate (44743)

Thanks @Keader for creating the new spell scripts & SQL,
 saved me a lot of time! :-)
2016-07-16 16:15:19 +02:00
Shauren
86a594a4dd Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection 2016-07-16 14:12:15 +02:00
Shauren
9509aac38b Core/Commands: Allow .cooldown command to work on player pets 2016-07-16 11:15:23 +02:00
ariel-
6988407b43 Core/Spells: Fix Roar of Sacrifice damage part (#17519) 2016-07-16 02:52:32 -03:00
Gustavo
23e89b8aef Core/Spells GameObjects needs to be spawned in order to be acceptable as a SpellFocus (#17594) 2016-07-15 23:45:50 +02:00
ariel-
fbbb03212e Core/Chat: general cleanup and revamping: (#17576)
- Remove duplicate ObjectGuid in Channel (both as key and value member)
- Add const-ness to Channel methods
- NULL->nullptr
- const type* -> type const*
- Removed all instances of std::map::operator[] except where it is actually INTENDED to insert an element
- Use Trinity::StringFormat instead of snprintf
2016-07-15 22:33:49 +02:00
Shauren
8460285f94 Core/Quests: Failing/abandoning a quest should not unconditionally remove required items, non-quest specific items such as crafting reagents should remain in inventory 2016-07-15 20:00:42 +02:00
Brian
3c0d7fd744 Core/Quests: Remove quest items that were looted if they are unique, bound, quest items, when abandoning a quest. (#17556) 2016-07-15 19:49:12 +02:00
robinsch
bc358fc381 Core/Spell: Sheath of Light should add remaining ticks to healing done when refreshed (#17583) 2016-07-15 19:46:39 +02:00
Andrew Letson
6ea48c036e Core/Scripts: Migrate Tanaris NPC's to SAI (#17390) 2016-07-15 18:42:12 +02:00
SnapperRy
ba0cb53b02 Core/SmartAI: change SMART_ACTION_RISE_UP (114) to SMART_ACTION_MOVE_OFFSET and implement offset movement via target fields. (#17362) 2016-07-15 18:37:17 +02:00
SnapperRy
d7e47de264 Core/SpellArea: iterate spell_area entries by player's current area instead of quest id. (#17509) 2016-07-15 18:32:16 +02:00
SnapperRy
a732749d72 Core/Unit: remove emote state when creature attacks another unit (#17542) 2016-07-15 18:31:52 +02:00
SnapperRy
f78ab9aba4 Core/Creature: implement INHABIT_ROOT to apply UNIT_STATE_ROOT to creature (#17543)
Add flag 8 to InhabitType for creatures that should appear rooted client-side
2016-07-15 16:48:04 +02:00
robinsch
8a2df73a82 Script/Archavon: Implement EMOTE_LEAP (#17588) 2016-07-15 15:31:52 +02:00
Naios
445746c402 Core/Scripting: Fix acquiring of references between script swaps
* Delay unloading of shared libraries to the next update tick
  to prevent crashes in the destructor of the last referenced
  script instance.
* Closes #17557
2016-07-13 21:58:50 +02:00
P-Kito
0aad705f95 Game/Entities: Fix math problem "Disk Point Picking" in GetRandomPoint (#17577) 2016-07-13 16:41:33 +02:00
SnapperRy
baf54cff3b Core/Quest: implement usage of QUEST_FLAGS_RAID to allow a quest to be completed while in raid. (#17535)
By @ForesterDev
2016-07-11 10:15:51 +02:00
Meruemu
4a46fee03e Core/Entities: Fix flag CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN implementation. (#17548) 2016-07-11 10:15:05 +02:00
Warpten
07ce570be8 Scripts/RubySanctum: Fix missing break reported by Coverity. 2016-07-10 17:46:15 +02:00
SnapperRy
df532d1948 Core/Script: add missing say in script for npc Lakota Windsong 2016-07-10 14:39:10 +02:00
Keader
23b6991273 Core/Movement Fixed minimum speed check (#17555) 2016-07-10 11:32:14 +02:00
Snapper
ebb33bbfc1 Core/Misc: use enum for UNIIT_NPC_FLAGS' zero values 2016-07-10 09:33:55 +02:00
Aokromes
8211266f9b Core/Player: Move few logs of loglevel and add few notes (#17554) 2016-07-10 00:31:33 +02:00
Snapper
21797c6c4f Core/Misc: kill whitespace and use enum instead of hardcoded value. 2016-07-09 21:36:04 +02:00
SnapperRy
bf9b89dd2e Core/Quest: don't save queststatus for autocomplete quests (#17487) 2016-07-09 18:29:05 +02:00
Shauren
cb786e8841 Core/Quests: Fixed crash during loading quest rewarded status added in 7905651b07
Closes #17552
2016-07-09 17:46:16 +02:00
w1sht0l1v3
fcfb7b96b2 Core/Scripts: Corrections after 14b93c04ee 2016-07-09 17:14:03 +03:00