Commit Graph

19310 Commits

Author SHA1 Message Date
treeston
d240ccb38c DB/Creature: Add a new extra_flag CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ (0x00200000) that awards players credit for killing the creature even if less than 50% of damage was dealt by players.
This can be used to fix quests such as "Heated Battle" or "If Valgarde Falls..." that are currently very hard to complete at the appropriate level due to "friendly" NPCs killing off the required targets too quickly for players to get 50% of damage in.
2016-01-23 16:41:25 +01:00
treeston
f5bd7b903c Coverity fix for CID 1349782. 2016-01-23 13:30:07 +01:00
Shauren
3f886025a2 Core/Spells: Ignore category cooldowns for triggered spells.
* This fixes weird issues where triggered spell fails because it has the same category as the spell triggering it

Closes #15794
Closes #15048

(cherry picked from commit 044edced9a)
2016-01-22 22:14:28 +01:00
Carbenium
1038df8d5b Core/Util: Add a missing include 2016-01-22 20:22:45 +01:00
tkrokli
29c2a42324 Core/Scripts/DB: remove hardcoded text from 'npcs_dithers_and_arbington'
- created DB gossip_menu_option entries for both NPCs
- added enum section instead of "magic numbers" in script
- replaced core text with pointers to DB text
- zone_western_plaguelands.cpp is now cleaned up
2016-01-21 15:02:38 +01:00
treeston
cd625a12e2 Player/Quest: Credit group for gameobject activation if they are in proximity. 2016-01-21 00:00:33 +01:00
treeston
cebdf03349 Fix warning. 2016-01-20 23:20:18 +01:00
joschiwald
ea38a7d95b Scripts/ICC/Teleporter: moved gossips to db 2016-01-20 00:32:30 +01:00
Nick
a35a6279fe Core/Scripts: Change door ID in Blackwing Lair
as per 7d454c66f7

Change the name as well.
2016-01-19 22:18:32 +01:00
treeston
e8a79737a5 Merge branch '3.3.5-horsemen' into 3.3.5-base (PR #16194) 2016-01-19 21:39:23 +01:00
treeston
d23ef5d6d0 Merge branch '3.3.5-gothik' into 3.3.5-base (PR #16142) 2016-01-19 21:38:24 +01:00
Saben65
ccf3ed40e2 Scripts/Zangarmarsh: Removes empty gossip_text that resulted in NPCs saying blank text to players after buffing them
Closes #12697
Closes #16300
2016-01-19 21:17:10 +01:00
DDuarte
ac727ab208 Scripts: Add override to CheckInRoom() definitions
Fixes -Winconsistent-missing-override
2016-01-19 13:06:04 +00:00
DDuarte
954323d9cb Core/Instances: Fix build in older VS versions
Relax const uses in BossBoundaryEntry so the compiler can generate proper
copy assignment operator (error C2582: 'operator =' function is unavailable in 'BossBoundaryEntry')

Also renamed its members to match our coding standards
(public members should be UpperCamelCase)
2016-01-19 13:01:43 +00:00
treeston
1050b68899 Merge branch '3.3.5-boundaryagain' into 3.3.5-base (PR #16270) 2016-01-18 18:35:20 +01:00
treeston
b945d01ee5 Instance boundary follow-up:
- Stop tools from complaining about leaks.
- Also, list -> vector.
- Fix an ambiguous constructor warning.
- Fix a bug with Gormok and Sindragosa (Fixes #16280).
2016-01-18 18:08:15 +01:00
treeston
8c7cd03d08 Item/Misc: Implement Toy Train Set and Wind-Up Train Wrecker. 2016-01-18 15:11:27 +01:00
treeston
17f924a031 Spell facing follow-up: Fix an issue with creatures' channeled spells not cancelling properly in certain conditions 2016-01-18 02:10:17 +01:00
Gabriele Gelardi
c0ed819e0c Scripts/Duel: prevent possible abuse in Duel Reset system 2016-01-17 17:15:09 +01:00
sirikfoll
8b74038531 Core/Scripts Script npc needed for Quest Torch Tossing part2
Script for Npc Torch Tossing Target_Bunny_Controller, responsable for handle the targets rotation for Midsummer Fire Festival quest, Torch Tossing.
2016-01-17 01:53:29 -02:00
sirikfoll
fb1f69c76e Core/Spells Implemented SpellScripts Needed for Achievement Pilgrim's Paunch 2016-01-17 00:57:52 -02:00
[Dev]Rival
fb6a7407e2 Core/BattlegroundIC: Duplicate Keep Cannons. 2016-01-17 02:05:04 +01:00
joschiwald
6b3468f48a Scripts/Spells: fixed Beacon of Light 2016-01-16 23:32:34 +01:00
treeston
2d7aa15fc0 Scripts/Naxxramas: Four Horsemen rework:
- Rewrite pretty much the entire encounter code
- Get rid of ugly define ugliness
- Sniffed waypoints
- Blizzlike timings
- Missing emotes
2016-01-15 20:17:48 +01:00
treeston
10482419b7 Looting/Group: Do not display looter in tooltip when FFA loot is enabled. 2016-01-14 11:56:00 +01:00
treeston
0316dff245 Fix stuff™. 2016-01-14 11:42:12 +01:00
treeston
233297c5c8 Merge branch '3.3.5-spellfacing' into 3.3.5-base (PR #15641) 2016-01-13 18:38:54 +01:00
treeston
f481ae1048 Core/Spells: Creature spellcast facing rework:
- Fixes creatures turning just before a spellcast finishes and smacking players with supposedly-unavoidable damage. Fixes and closes #15393, #10803, and probably others.
- Fixes visual effects not lining up with the correct target for spells that have their visual aligned with the caster's orientation (examples: Anub'rekhan Impale, Ingvar's Smash/Dark Smash, etc.). Fixes and closes #2947 and probably a bunch of others, including the aforementioned #15393 and #10803.
- Creatures' displayed target now properly matches the unit they are targeting with spells for a split second (blizzlike). This is necessary to get proper client-side orientation.
2016-01-13 18:35:44 +01:00
treeston
78228b59ab Scripts/Naxxramas: Gothik the Harvester rework:
- Move TeleportTo hack to proper spell casts
- Add missing lines to boss
- Fix add spawn timings
- Fix visuals
- Fix logic for gate opening
- Fix add aggro behavior
- Fix add casting AI
- Fix some other stuff I probably forgot
2016-01-13 16:27:35 +01:00
treeston
5b8b8c6530 Merge branch '3.3.5-bossboundary' into 3.3.5-base (PR #16089) 2016-01-13 15:33:17 +01:00
Kittnz
09a6516367 Core/Object: Codestyle improvements 2016-01-12 22:43:48 +01:00
Kittnz
eeb72994ba Merge pull request #16248 from elecyb/destroyAnimation
Core/Entities: Show destroy animation for creatures and totems.
2016-01-12 22:38:00 +01:00
treeston
2da458c56d Scripts/Instances: Complete rewrite of the boundary system.
- Migrate boundary logic to Maps/AreaBoundary instead of having it sit in InstanceScript (to possibly allow use for other purposes).
- Implement the first five boundary types in Maps/AreaBoundary.cpp.
- Add boundary checks to Creature's update logic
- Add boundary data for all Northrend raids
- Add boundary initialization structures and methods to InstanceScript
- Modify EnterEvadeMode signature. It now passes a value from the EvadeReason enum as parameter to allow special casing depending on evade reason
- Remove previous (weird) boundary code that had them linked to GO spawns
2016-01-12 22:24:23 +01:00
elecyb
38782deed0 Core/Entities: Show destroy animation for creatures and totems.
Now all pets and totems will have their proper die/destroy animation when killed.

Ported from MaNGOS.
2016-01-12 17:34:34 -03:00
Kittnz
529899675a Merge pull request #16245 from sirikfoll/Turkinator
Core/Spells Implement SpellScript needed for Achievement The Turkinator
2016-01-12 21:04:24 +01:00
Shauren
48940e292f Core/Quests: Fixed party accept quests 2016-01-12 19:41:27 +01:00
treeston
3ea6324507 Merge remote-tracking branch 'tkrokli/npc_myranda_the_hag' into 3.3.5-base 2016-01-12 19:18:13 +01:00
treeston
9091451818 Merge remote-tracking branch 'tkrokli/gossip_accept_duel' into 3.3.5-base 2016-01-12 19:17:39 +01:00
treeston
6710beed75 Merge remote-tracking branch 'tkrokli/npc_shadowfang_prisoner' into 3.3.5-base 2016-01-12 19:17:25 +01:00
Shauren
3c3cde028c Core/Quests: Fixed quest sharing
Closes #12304
Closes #16183
2016-01-12 19:08:37 +01:00
treeston
e203d78d2a Merge remote-tracking branch 'velinath/sai-migrations' into 3.3.5-base 2016-01-12 18:32:51 +01:00
sirikfoll
fc2a570d09 Core/Spells Implement SpellScript needed for Achievement The Turkinator
Closes #3997
2016-01-12 15:24:55 -02:00
tkrokli
76d5dbad4b [3.3.5] Core/Script: move Myranda the Hag's gossip option to DB
Removing hardcoded text from the core script and into the DB:
"I am ready for the illusion, Myranda."

This quest is 3.3.5 *only*. Removed in patch 4.0.3a.

Addendum: enum ILLUSION_GOSSIP = 4773 , instead of "magic number".
2016-01-12 17:37:18 +01:00
tkrokli
22dd523c1f Core/Scripts: move GOSSIP_ACCEPT_DUEL to DB
Another attempt to shorten the list of hardcoded gossip menu options.

This is the gossip menu option of the NPC ID 28406, Death Knight Initiate
in Death's Breach in the Scarlet Enclave, the death knight starting area.
This gossip is tied to the quest "Death's Challenge".

Removing this text in the core script: "I challenge you, death knight!"
(#define GOSSIP_ACCEPT_DUEL) and using `ADD_GOSSIP_ITEM_DB()`
to pull the gossip_menu_option 9765 from the database instead.
2016-01-12 10:18:44 +01:00
tkrokli
95a2eec923 Core/Scripts: move npc_shadowfang_prisoner gossip option to DB
Getting rid of one more incorrect and hardcoded text
which now will be read correct and from the DB instead.

Wrong text: "Thanks, I'll follow you to the door." (core)
Correct text: "Please unlock the courtyard door." (DB)

Thanks to @Aokromes, @r00ty, @velinath, @Nayd, @Treeston, @Zedron
and lots of other regular TrinityCore developers and members for the
inspiration and motivation, as well as helpfulness along the way.
2016-01-12 09:50:04 +01:00
ariel-
b08038c8b6 Fix typo after dcb7082277 2016-01-10 23:38:57 -03:00
jackpoz
e59b4324b8 Merge pull request #15977 from tkrokli/landmine_knockback_achievement
Scripts/Spells: Mine Sweeper achievement
2016-01-09 23:19:09 +01:00
jackpoz
4191bb868a Scripts/ICC: Fix static analysis issue
Fix an issue reported by static analysis
2016-01-09 21:53:53 +01:00
velinath
d87f504b53 Core/Scripts/DB: Migrate specially scripted taxi NPC's to SmartAI 2016-01-09 14:39:07 -05:00
Duarte Duarte
bddf9ec6fe Merge pull request #16101 from NathanHandley/3.3.5
Updated AuctionHouseSeller to have item class stack control
2016-01-09 18:46:20 +00:00