Commit Graph

4911 Commits

Author SHA1 Message Date
ariel-
ea8bb37bc7 Core/Scripts: add missing override and silence a warning in MSVC 2016-07-23 04:21:08 -03:00
Aokromes
9d67cafe92 Scripts/UtgardePinacle: Adjust King Ymiron boundaries 2016-07-22 18:45:29 +02:00
Keader
9ca2d0a62f Core/Scripts Added Black Temple Boundaries (#17579)
* Core/Scripts Added Black Temple Boundaries
2016-07-20 19:56:15 +02:00
Aokromes
75ca64a383 Scripts / Naxxramas : add missing null pointer check. Fixes CID 1354738 2016-07-20 19:50:00 +02:00
Keader
6759266253 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-20 19:35:07 +02:00
Shauren
3d991107e2 Core/Commands: Cooldown command should fall back to targeting self in case of no valid selection 2016-07-20 19:34:45 +02:00
Shauren
792f48b554 Core/Commands: Allow .cooldown command to work on player pets 2016-07-20 19:34:04 +02:00
Gustavo
0d412494ef Core/Spells GameObjects needs to be spawned in order to be acceptable as a SpellFocus (#17594) 2016-07-20 19:33:29 +02:00
robinsch
408f4370b3 Script/Archavon: Implement EMOTE_LEAP (#17588) 2016-07-20 19:20:33 +02:00
Snapper
c82ecf4976 Core/Misc: use enum for UNIIT_NPC_FLAGS' zero values 2016-07-20 19:17:06 +02:00
Snapper
429a4bc13b Core/Misc: kill whitespace and use enum instead of hardcoded value. 2016-07-20 19:16:18 +02:00
w1sht0l1v3
6ba75a54d1 Core/Scripts: Corrections after 14b93c04ee 2016-07-20 19:13:35 +02:00
SnapperRy
bde4176861 Core/Script: small improvement for quest "The Hunt is On". (#17537)
Reset emotestate when the event starts.
2016-07-20 18:47:41 +02:00
DDuarte
e2248bbfa4 Scripts/Commands: Fix build warning 2016-07-20 18:37:01 +02:00
Aokromes
b942fd40a9 Scripts/Commands: Remove unused argument of .cometome command 2016-07-20 18:36:33 +02:00
Shauren
fa7026cee3 Core/Spells: Fixed spell range check
Closes #17060
2016-07-20 18:26:18 +02:00
Gustavo
d1d8840ce6 Core/Scripts Boss Ahune Clean-up (#17320)
Remove use of flags UNIT_FLAG_NON_ATTACKABLE and UNIT_FLAG_REMOVE_CLIENT_CONTROL
Replace with correct one, UNIT_FLAG_UNK_31, imunity part now is fully handled by auras
Fix a problem with bugged orientation while casting SPELL_SYNCH_HEALTH
Use std::crono notations
Remove unneeded code

Move one spell_linked_spell to SpellScript
Fix Loot issue
Fix Possible Crash
2016-07-20 18:14:58 +02:00
tkrokli
c58a96de47 Core/Scripts: Tom Hegger must target player in Say text (#17395)
File: zone_borean_tundra.cpp
Script: npc_hidden_cultist
Quest: The Hunt is On, 11794
NPC:  Tom Hegger, 25827

Before this change, Tom Hegger does not target player when saying his
aggro text "You don't know who you're messing with, $c!   Death beckons!"
and hence the text $c will be shown instead of the player class.
2016-07-20 18:06:29 +02:00
Aokromes
4e31162a42 Core/Scripts: Extended SMART_ACTION_SET_INST_DATA to also set BossStates. (#16739)
Scripts/Dire Maul: Initialize boss states array so it may be called from SmartAI. (Ref #6429)
2016-07-20 16:44:24 +02:00
treeston
3ef2ed31e2 Instances/DrakTharonKeep: Fix Novos the Summoner. Fixes #17331. 2016-07-20 16:35:58 +02:00
ariel-
63bb3609b6 Core/Script: moved SAI to cpp for The Etymidian, closes #17053 (#17330) 2016-07-20 16:35:02 +02:00
Aokromes
416aaa8c16 delete another no longer used file 2016-07-20 16:27:40 +02:00
Keader
b917eb955f Core/Scripts Fixed Anubarak issues related with Leeching Swarm spell 2016-07-20 16:18:51 +02:00
Aokromes
c028afbf55 delete unused file 2016-07-20 16:17:52 +02:00
tkrokli
d9aeb17249 Core/Scripts: remove hardcoded text from npc_sayge
- remove hardcoded (and wrong) text from the script
- copy valid text from broadcast_text to gossip_menu_option
- gossip_menu / npc_text is already correct in TDB 335.61
- sort + clean up core script enum list and add new entries
- keep gossip handling unchanged in the script (low prio)
2016-07-20 16:15:41 +02:00
Aokromes
5ec2c5b122 delete no longer used file. 2016-07-20 16:09:34 +02:00
tkrokli
d7a2ad410a Core/Scripts: npc_grandmother gossip text moved to DB
Removing one more hardcoded text line from core scripts.
Also adding correct gossip to the npc_grandmother script.

Gossip changes in this script:
- remove hardcoded text from core script
- use existing npc_text IDs in gossip enum
- add missing text rows to gossip_menu_option
- use values from gossip_menu_option in enum
- replace spawn coordinates 0.0f with GetPosition()
2016-07-20 16:07:18 +02:00
treeston
4bf80b2a47 Scripts/Instances: Fix a bug that would cause the Hodir encounter to never properly begin. Tagging issue #17302. 2016-07-20 15:54:59 +02:00
treeston
5904b4a560 Scripts/Outland: Fix a potential crash. Closes #17308. 2016-07-20 15:54:25 +02:00
tkrokli
d1333835f7 Core/Scripts: boss_majordomo hardcoded text
2 more text lines removed in the ongoing series:
"Remove hardcoded text from core scripts".

Core script for boss Majordomo Executus:
- add missing gossip_menu_option entries
- link the options via the table gossip_menu
- remove hardcoded text from the script
- minor enum line order sorting cleanup
- replace OnGossipSelect() with sGossipSelect()

The scripted events are unchanged.
If the script is inaccurate, make a new PR.
2016-07-20 15:48:14 +02:00
treeston
3708204f9b Scripts/BlackrockMountain: Nefarian. (#16346 f-u) 2016-07-20 15:47:18 +02:00
treeston
e8a145d1ac Scripts/MoltenCore: Fix Ragnaros (#16346 follow-up). 2016-07-20 15:47:07 +02:00
treeston
af864282a6 Scripts/Instances: More #16346 follow-ups. Fixed this time: Halls of Reflection, Ignis the Furnace Master, Mimiron and Rend Blackhand. 2016-07-20 15:46:53 +02:00
jackpoz
d9f485273c Core/VMaps: Fix some vmap height edge cases
Fix Map::GetWaterOrGroundLevel() checking dynamic object only in phase 1 instead of current Unit phase.
Improve DynamicMapTree::getHeight() dynamic object check by casting the ray at +0.5f from the passed Z coordinate, this value will be tuned to improve even more the results.
2016-07-20 15:45:05 +02:00
treeston
ff2e59e15c Compiler warning fix. 2016-07-20 15:43:16 +02:00
treeston
0f0b795c50 Scripts/TotC: More follow-up to #16346. Also code style cleanup. Who names all their creature pointers "temp"? 2016-07-20 15:42:51 +02:00
treeston
1f801908f0 Scripts/Instances: Follow-up to #16346. Fix Illidan and Northrend Beasts. 2016-07-20 15:42:24 +02:00
Aokromes
2387591f1a Core/Creatures: Remove resetting of UNIT_FLAG_IMMUNE_TO_PC on combat clearing 2016-07-20 15:39:16 +02:00
treeston
7490ca5eab Scripts/Naxxramas: Fix Frogger event. Closes #16488. 2016-07-20 15:31:45 +02:00
Aokromes
0fc8ecf7c2 another build fix 2016-07-20 14:22:55 +02:00
Aokromes
74cb8608c3 compile fix 2016-07-20 14:16:33 +02:00
Shauren
5942d4da0a Core/Scripts: build fix 2016-07-20 14:15:04 +02:00
Shauren
e58f0e805c Core/Units: Renamed and documented UNIT_FLAG_DISABLE_MOVE to prevent people from trying to use this flag to root a creature leaving them wondering why it doesn't do anything 2016-07-20 13:56:16 +02:00
ForesterDev
43e1534a7b improve error message 2016-07-20 12:57:45 +02:00
joschiwald
65184de143 Makes travis happy 2016-07-20 12:55:52 +02:00
joschiwald
1e092ee8e2 Scripts/Freya: removed obsolete code 2016-07-20 12:53:39 +02:00
Aokromes
11636faadf Core: define CREATURE_FAMILY_NONE to avoid magic numbers in code 2016-07-20 12:49:38 +02:00
vincent-michael
dadd81afe0 Core/Quests: Fixed issue reported by static analysis
Coverity defect ID: 1355241
2016-07-20 11:01:10 +02:00
Aokromes
551990fb4c Compile fix, partialy revert a3ca833d0d need help to port
dc3327f9c5
2016-07-19 18:09:05 +02:00
Aokromes
cd9acb7d05 Core/Spells: Fixed overwriting summon requests 2016-07-19 17:15:06 +02:00