Commit Graph

2148 Commits

Author SHA1 Message Date
ariel-
30d4f70533 Core/Entities: debloat SummonGameObject parameter list using proper wrappers and enable GO rotation in scripts
- There's still an overload allowing for x, y, z, o to be passed directly
- Fixed default animstate for GameObject creation in many places, it should be 255, not 100 (checked in sniffs)

(cherry picked from commit 62bfee37cb)

Conflicts:
	src/server/game/Entities/GameObject/GameObject.cpp
	src/server/game/Entities/Object/Object.cpp
	src/server/game/Spells/SpellEffects.cpp
	src/server/scripts/Commands/cs_gobject.cpp
	src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp
	src/server/scripts/Kalimdor/zone_feralas.cpp
2016-08-01 01:23:47 -03:00
Aokromes
b51adac24c Core/GameObjects: Gameobject rotation (from cmangos/mangos-wotlk@2bcbc0f)
cmangos/mangos-wotlk@0fe88f3: [11531] Normalize gameobject's quaternion, thanks to zergtmn for pointing
cmangos/mangos-wotlk@060dfb7: [11667] Implement transport path rotation
cmangos/mangos-wotlk@565f52c: [11806] A bit gameobject code refactoring
cmangos/mangos-wotlk@6874951: [11807] Add gameobject_addon table
2016-07-30 15:51:23 +02:00
ariel-
fa8662e617 Core/Movement: Clean up and improvements on Unit::SetSpeed (#16843)
- Clean up of Unit::SetSpeed (mostly cherry picks from the 6.x branch):
- the opcode sent depends on the unit. until now, MSG_MOVE_SET_* were sent for every units which isn't like retail behavior.
- Removed the unused method parameter "forced" from Unit::SetSpeed
- Renamed Unit::SetSpeed to SetSpeedRate
- Removed the unused method parameter "forced" from Unit::UpdateSpeed
- Added utility method Unit::SetSpeed which take the new flat value.
Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
	src/server/scripts/Commands/cs_modify.cpp
	src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp
	src/server/scripts/Kalimdor/zone_azshara.cpp
	src/server/scripts/Kalimdor/zone_durotar.cpp
	src/server/scripts/Northrend/Nexus/EyeOfEternity/boss_malygos.cpp
2016-07-23 07:02:25 -03:00
Aokromes
9d67cafe92 Scripts/UtgardePinacle: Adjust King Ymiron boundaries 2016-07-22 18:45:29 +02:00
Aokromes
75ca64a383 Scripts / Naxxramas : add missing null pointer check. Fixes CID 1354738 2016-07-20 19:50:00 +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
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
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
treeston
3ef2ed31e2 Instances/DrakTharonKeep: Fix Novos the Summoner. Fixes #17331. 2016-07-20 16:35:58 +02:00
Keader
b917eb955f Core/Scripts Fixed Anubarak issues related with Leeching Swarm spell 2016-07-20 16:18:51 +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
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
Shauren
5942d4da0a Core/Scripts: build fix 2016-07-20 14:15:04 +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
vincent-michael
dadd81afe0 Core/Quests: Fixed issue reported by static analysis
Coverity defect ID: 1355241
2016-07-20 11:01:10 +02:00
Aokromes
0c5007efe9 Core/Misc: Fix issues reported by static analysis 2016-07-19 16:11:21 +02:00
Gacko
bba08ed29c Scripts: Add missing overrides.
(cherry picked from commit aac868a6d9)
2016-07-19 15:54:54 +02:00
Aokromes
3f0c7f6b2f Core/Spells: Renamed EnsureSpellInfo to AssertSpellInfo to minimize differences between branches 2016-07-19 12:02:52 +02:00
Keader
07f1bde1c3 Core/Scripts Improve Felflame Infernal of Lord Jaraxxus fight (#16998) 2016-07-17 16:42:10 +02:00
Warpten
95e703c4fb Scripts/RubySanctum: Fix missing break reported by Coverity. 2016-07-17 16:26:38 +02:00
Gustavo
58aaccb8af Core/Scripts Corrections on Halion's Encounter (#16725)
Core/Scripts: Updates to Halion

* Fixed Combustion and Consumption.
* Fixed Living Embers and Blazing Auras.
* Timer changes.
2016-07-17 16:25:39 +02:00
Keader
f8a5ca9f6c DB/Misc: delete duplicate file 2016-07-17 14:16:18 +02:00
Keader
64237ae3f8 Changing remove aura method 2016-07-17 14:14:58 +02:00
Keader
de7b532e68 Fixing the issue 2016-07-17 14:14:40 +02:00
Keader
076d150d4b Rename spell_snakes_spray for spell_jormungars_snakes_spray and cleanup 2016-07-17 14:14:27 +02:00
Keader
62b97ff51d Core/Scripts Improve Jormungars fight 2016-07-17 14:14:05 +02:00
sirikfoll
be85915dfc Core/Achievement A-bomb-inable and A-bomb-ination 2016-06-20 18:12:40 +02:00
Aokromes
41c3193c6b Core: Remove whitespaces 2016-05-16 22:52:36 +02:00
treeston
afa9a62e78 Scripts/Naxxramas: Clean-up and bug-fix megacommit. Read the full commit message if you care.
- Maexxna:
  - No longer packages pets and returns them to sender. Web Wrap now only targets players.
- Heigan the Unclean: Ripped its guts out.
  - Instance script hacks are gone.
  - GO spawns (done using the time-honored TC tradition of "eh, this'll work") are gone. You could say I evacuated the dance floor.
  - Sniffed spawns for all segments of the room. Because if you don't dance - well, you're no friends of mine.
- Loatheb:
  - First spore now spawns properly after 18 seconds on 10-man (down from 36 seconds). Time between subsequent spawns is unchanged.
- Thaddius:
  - Instance script hacks are gone. Again. Feels good man.
  - Players no longer drop out of combat during the phase transition. Put your snacks away, this is supposed to be a tense situation!
  - Thaddius will no longer savagely punish the main tank for stepping out of melee range for a fraction of a second by turning around and ball lightning-ing someone in the face. Typically a healer. He hates healers.
  - Thaddius will instead take out his frustration on another melee range target if available by smacking them in the face with his fists. It hurts, but a Ball Lightning would've hurt more. Blame the tank.
  - Feugen and Stalagg have been re-educated to improve their patience when a new target is flying towards them. They will no longer move while Magnetic Pull targets are mid-air, which should prevent them from running off their platform while the warrior helplessly flails trying to get them back.
- Instructor Razuvious:
  - Razuvious has been informed that Rubik's Cubes become noticably easier to solve if you buy six-colored ones. Thus, he will no longer take out his frustration out on raid groups by throwing unsolved two-colored variants at them. Fixes and closes #14966.
  - Death Knight Understudies will now realize that their situation is Hopeless even if they're currently mind controlled by a player. Apparently, if your situation is hopeless you take 5000% extra damage. No, that is supposed to be three zeroes.
- Gothik the Harvester:
  - Gothik has been schooled in proper Shadow Bolt spamming etiquette and will now take a brief pause to catch a breath and recompose himself between bolts.
- The Four Horsemen:
  - Will no longer stop and stare at the group sometimes when engaged instead of starting the encounter.
  - Horsemen can no longer be affected by stun, snare and shackle (heh, yeah, you could totally shackle Baron Rivendare) effects. It's called "Four Horsemen" after all, not "Three Horsemen that never attack because their friend can't move".
- Sapphiron:
  - When attempting to FREEZE THE BLOOD IN YOUR VEINS... Wait, no. Wrong boss. I was thinking of #16634.
  - Anyways, when freezing people into an Ice Block, Sapphiron now takes care to actually place the block on top of the frozen player, even if they were moving or jumping when the bolt hit them. Yay for positioning clarity!
  - Sapphiron has been sent to take multiple mandatory courses in "How to treat raid parties fairly while attempting to murder them" and will thus...
    - ...now properly pause after taking off to allow players to get into position before smacking them with ice bolts
    - ...no longer deal damage to players inside an Ice Block while they cannot fight back.
  - Being forced to attend the courses mentioned above has led to a large amount of pent-up frustration, which Sapphiron relieves by quite forcefully flapping his wings during take-off. Players immediately below him are now properly knocked back.
  - In addition, Kel'thuzad was sick of Sapphiron's continous pouting and allowed him to make Blizzard more malicious in exchange. Blizzard will now properly spawn near players and chase them down instead of pathing randomly.
- Also, tons of code style cleanups and hack removal that wasn't mentioned above. Read the diff if you really care.

Conflicts:
	src/server/game/Spells/Spell.cpp
2016-05-14 05:38:51 +02:00
sirikfoll
d5f05fcec4 Implement Quest Riding the Red Rocket 2016-05-12 09:23:21 +02:00
asterc
19bc4f63b2 Core/Battleground Script for Isle of Conquest Bosses
by @gerripeach
2016-05-12 09:21:56 +02:00
Kito
4ce6bd3014 Scripts/Icecrown Citadel: Sindragosa - Ice Tomb should always deal damage to all other ice tombs too
Closes #7808
Merges #16863
2016-05-12 09:16:52 +02:00
Shauren
af17e23204 Core/Misc: Fixed -Wmisleading-indentation warnings
(cherry picked from commit 3ac33163db)

# Conflicts:
#	src/server/game/Server/Protocol/PacketLog.cpp
2016-05-12 09:10:53 +02:00
joschiwald
42033fd904 Core/Utils: replaced std::random_shuffle with our own implementation using SFMT random generator 2016-05-12 09:07:29 +02:00
Gustavo
a407fddca5 Core/Quests Fix Quests Borrowed Technology, Volatility and The Solution Solution (#16968) 2016-05-12 08:47:02 +02:00
chaodhib
8a84d7de3e Scripts/Naxxramas: Rework of Gluth
1) Gluth should be able to eat zombies close to him, one at the time, during the whole fight.
2) Gluth should be able to eat zombies at an accelerated rate after each Decimate.
3) The zombies should put the "Infected Wound" debuff on their auto-attack targets.
4) Zombies should have a normal threat table before decimate and should loose all kind of aggro behavior and walk toward Gluth after decimate.
5) Gluth shouldn't be affected by the decimate damage.
6) Newly poped zombies should have all players in their aggro list as soon as they spawn. So far, they were not moving and were only aggroed by proximity.
7) and several minor fixes (emotes, useless data in db).
2016-05-12 08:45:44 +02:00
Shauren
a7f68c489a Properly rename the stand state method... 2016-05-12 08:27:48 +02:00
Shauren
a12493fd84 Core/Misc: Renamed getStandState to minimize differences between branches 2016-05-12 08:27:29 +02:00
joschiwald
8241b71a78 Scripts: Added combat abilities to trash mobs in Ruby Sanctum
Thx @sirikfoll

SAI by @Keader

Closes #16703
2016-05-12 08:01:17 +02:00
Keader
27ed37ee39 Fix Living Constellation not activating during Algalon encounter. 2016-05-12 00:18:19 +02:00
Golrag
f98281909f Scripts/Icecrown Citadel: Fixed Sindragosa ice tomb targets
* Also changed the way NonTankTargetSelector checks who is the tank.
2016-05-12 00:02:27 +02:00