Commit Graph
460 Commits
Author SHA1 Message Date
silinoron fc832122cc Core/Vehicle: Some code-style cleanup.
--HG--
branch : trunk
2010-11-21 10:07:51 -08:00
Machiavelli 92a7d02184 Core/Player: Invoke global cooldown when equipping relic slot items during combat.
Please report any issues you find regarding this changeset.

--HG--
branch : trunk
2010-11-21 16:48:08 +01:00
azazel 87d723405e Core/Scripts: return const modifier to Player methods back (should restore compilation for those with custom scripts).
NOTE: The main idea of original change is to allow scripts change content of message so that calling method sends modified message to client.
For example, moderating script which cuts illegal words from message.

--HG--
branch : trunk
2010-11-18 10:26:34 +06:00
click 2e68705e22 Core/Spells: Use ShapeshiftForm model IDs from DBC instead of as hardcoded values - fix by Kaelima
(Some shapeshifts need overrides due to missing DBC data, and needs hardcoding - already handled)
Closes issue 4832.

--HG--
branch : trunk
2010-11-17 18:15:49 +01:00
azazel 4fb572015a Core/Scripts: pass message parameter by reference in OnChat methods to make it possible to be modified inside the script.
--HG--
branch : trunk
2010-11-17 18:14:35 +06:00
linencloth e87223b453 Core/WorldObjects: Destroy for nearby players before removing from world
Closes issue 4806

--HG--
branch : trunk
2010-11-16 21:17:49 +01:00
Spp addd762c4d Core: Fix warnings
--HG--
branch : trunk
2010-11-16 14:08:12 +01:00
click 0dc3d771e1 Core/Unit: Add missing/update old shapeshifting modelforms for Shapeshifting - Fix by Kaelima
Closes issue 4804

--HG--
branch : trunk
2010-11-16 14:04:15 +01:00
click 6ebaad1847 Core: Add validation-test for adding creatures to the world - fix by Paradox
Closes issue 4807

--HG--
branch : trunk
2010-11-16 14:00:47 +01:00
linencloth 8fae0c176d Core/Units: Rename and change Get/SetVisibility to use a bool value instead of an unnecessary enum
Also replace some SetVisibility hacks to directly call UpdateObjectVisibility

--HG--
branch : trunk
2010-11-16 01:13:04 +01:00
linencloth 57c76407b0 Core/Players: Update object visibility right after adding the player to a map
--HG--
branch : trunk
2010-11-15 23:10:48 +01:00
linencloth 8f96f37c2e Core/Players: Cleanup the visibility updater
--HG--
branch : trunk
2010-11-15 23:08:02 +01:00
linencloth 0aad81fbbf Core/WorldObjects: Prevent most notifiers to be used to visit grids/cells using an invalid object
Closes issue 4765
Closes issue 4783

--HG--
branch : trunk
2010-11-14 23:53:14 +01:00
Shocker 48d90fab32 Misc: Some engrish fixes, thanks to ZxBiohazardZx, closes issue 4740
--HG--
branch : trunk
2010-11-14 23:46:34 +02:00
linencloth e72106c5e9 Core/Creatures: Fix visibility of spirit guides
Closes issue 4781

--HG--
branch : trunk
2010-11-14 22:24:00 +01:00
linencloth 1ec41c754b Core/Player: Fix sight range
Closes issue 4772

--HG--
branch : trunk
2010-11-14 17:49:10 +01:00
linencloth 6b3204e441 Core/Creatures: Do not regenerate the health of evading creatures, it should happen only while normal pathing or at home
--HG--
branch : trunk
2010-11-14 04:20:32 +01:00
linencloth 7beb14b177 Core/Player: Delay the visibility update when setting the group to prevent crashing when a player enters the world in a group/raid.
Closes issue 4762

--HG--
branch : trunk
2010-11-13 23:27:54 +01:00
Shauren 72eff3dd0d Fixed recently added compile warnings
--HG--
branch : trunk
2010-11-13 21:21:43 +01:00
click 80694546a3 Core: Fix non-PCH compile (include Unit.h so we don't get a forward declaration issue, and also include the necessary defines)
--HG--
branch : trunk
2010-11-13 20:06:19 +01:00
linencloth 880ef0c398 Core/Spells: Fix spelleffect sanctuary
- No longer removes every attacker, but updates the visibility
  - Using that effect won't remove attackers that can still see through the stealth of the caster based on distance
- Ignores spells that were casted before or at the same time of that effect
- Trigger other needed spells when casting Shadowmeld

--HG--
branch : trunk
2010-11-13 18:04:56 +01:00
linencloth bf888285aa Core:
- Redesigned stealth and invisibility handling
  - Implemented the handling of multiple stealth types
- Implemented fake inebriation
- The message deliverer no longer sends packets from a non-visible source
  - The server won't send that much garbage which just takes bandwith
  - It won't be possible to use cheats to detect invisible objects
- Removed a lot of checks for the Z-coord
  - Fixes visibility problems happening while flying
- Limited the grid activation range of creatures to use less resources
- Implemented Shroud of Death
- Implemented increased visibility range for active objects
- Removed visibility check at spellhit (only sanctuary effects should prevent it)
(And a lot of other changes...)

Closes issue 4208
Closes issue 3049
Closes issue 2097
Closes issue 2198
Closes issue 2384
Closes issue 2197
Closes issue 2319

--HG--
branch : trunk
2010-11-13 17:18:09 +01:00
click 5d42e2293c Core/Spells: Fix Culling the Herd (and a personal thanks to Xanadu for being patient on explaining the procsystem properly)
Closes issue 4533

--HG--
branch : trunk
2010-11-13 04:10:48 +01:00
Machiavelli 36b40511ac Core/Unit: Threat values sent to the client should be multiplied by 100, as pointed out by Aokromes.
--HG--
branch : trunk
2010-11-09 11:17:33 +01:00
Machiavelli ec125bbc67 Core/Misc: Fix a typo (affects no functionality, just for aesthetics)
Author: 2010phenix
Fixes issue #4247

--HG--
branch : trunk
2010-11-09 10:55:20 +01:00
click 44850aab07 Core: Disallow moving currency tokens out of their hidden bag - fix by leak
--HG--
branch : trunk
2010-11-07 22:28:03 +01:00
click 7853a06912 Fix "typo" in previous commit (codingstyle)
--HG--
branch : trunk
2010-11-07 20:12:36 +01:00
click 5d4f009a87 Core/Entities: Fix exploit/crash in inventory-handling (CMSG_OPEN_ITEM) -thanks to leak
(Adds a scrutiny-based check to baghandling: don't allow placing items in bags that are not "usable" as regular bags)

--HG--
branch : trunk
2010-11-07 20:08:52 +01:00
Rat 3809892987 Core/SmartAI: modified ACTION_EQUIP to use a bitmask to send slot updates (for more blzzlike packet handling)
--HG--
branch : trunk
2010-11-06 23:08:33 +01:00
Machiavelli 26d8e04351 Core/Unit: Clear threat list on units when they die (fix players having aggro on corpses)
Original suggestion by [email protected]

Fixes issue #4667

--HG--
branch : trunk
2010-11-06 10:35:46 +01:00
Rat c9cf2f059f Core/AI: delay all AI()->Respawn() hooks by 1 server tick, this way when creatures are just got created they will successfully find other objects in scripts at spawn time
--HG--
branch : trunk
2010-11-03 18:33:47 +01:00
Rat b6c8158f88 Core/Vehicles: temp fix visibility issues when creatures enter a vehicle, this also fixes the 'Ride Vehicle' type spells
note: isntance scripts using spell+EnterVehicle() hacks should be updated

--HG--
branch : trunk
2010-10-31 14:19:14 +01:00
Rat 064b3fd2b3 Core/AI: use NullGameObjectAI for gameobjects with ScriptName
- use GameObjectAI with Transports too

--HG--
branch : trunk
2010-10-25 18:11:52 +02:00
Spp 739f336618 Core: Fix warnings
--HG--
branch : trunk
2010-10-25 11:25:42 +02:00
Shauren 42065a236e Core/Scripts: Moved HealReceived from CreatureAI to UnitAI and added HealDone and removed creature-only restriction
--HG--
branch : trunk
2010-10-25 11:12:47 +02:00
linencloth 9b8a457aeb Core/DBLayer: Optimize creature formation loading
--HG--
branch : trunk
2010-10-25 02:32:33 +02:00
linencloth 3742e8ddec Core/Transport: Prevent creature passengers from teleporting to an invalid grid.
--HG--
branch : trunk
2010-10-25 02:30:50 +02:00
Shauren ae58481c21 Core/Entities: Remove circular dependencies from GameObject headers, fixes *nix compile
--HG--
branch : trunk
extra : rebase_source : bcedd4aed81ad6fb72a13607cf954c11356bbfcc
2010-10-24 22:03:53 +02:00
Shauren 88ae092744 Core/Quests: Use honor multiplier as base for calculating honor rewards, not the amount of kills (fix by Nay)
--HG--
branch : trunk
2010-10-24 21:32:26 +02:00
Shauren d03aeab9ad Scripts/Icecrown Citadel: Added Blood Prince Council script
Scripts/Icecrown Citadel: Festergut will not cast Vile Gas on melee targets if there are at least 3 (25 man: 8) ranged targets
Scripts/Icecrown Citadel: Festergut and Rotface gates will close with delay (when Putricide reaches the balcony)
Scripts/Icecrown Citadel: Replaced ASSERT(instance) with code disabling the AI if not inside instance
Core/Spells: Fixed TARGET_DEST_TARGET_RANDOM usage
Core/Scripts: Extended DamageDealt in AI to accept damage type as 3rd parameter
Scripts/Quests: Fixed quest "Unholy Infusion" (24749)

--HG--
branch : trunk
2010-10-24 21:27:02 +02:00
linencloth 07fa1bcbdf Core/Creature: Implement FarTeleportTo (teleport to an other map)
Core/Transport: Cleanup and optimize transport and passenger handling
- Only transports will be active objects
  - Reduced cpu and memory usage
- Using FarTeleportTo for creature passengers at transport teleportation
  - Creatures won't be recreated on teleport

--HG--
branch : trunk
2010-10-24 02:55:50 +02:00
Rat 62739ed26f Core/AI: implemented basic class for GameObjectAI
--HG--
branch : trunk
2010-10-23 23:31:37 +02:00
Rat e67f04d362 Core/ConditionMgr: added CONDITION_SOURCE_TYPE_VEHICLE_SPELL, sourceGroup=creatureTemplate.entry, sourceEntry=spellEntry
--HG--
branch : trunk
2010-10-22 22:45:11 +02:00
click a1319a2020 Core/Unit: Revert r457923c3f3 - combattimer handling from that revision is wrong, as it dictates wether not a creature will actually enter combat or not - with
the earlier change this ment that any creature entering combat would not properly continue if target moved.

--HG--
branch : trunk
2010-10-22 03:59:08 +02:00
click 8ac91ada22 Core/Unit: Fix leave combat timer - original patch by Laise
Needs further testing, give feedback if wrong.

--HG--
branch : trunk
2010-10-21 22:09:45 +02:00
linencloth d9d1ec3670 Core: optimize string splitting
- Mainly affects item loading performance
  - Reduces guild loading time a lot

--HG--
branch : trunk
2010-10-21 16:56:51 +02:00
Spp 959ef0878a Core/Groups: Use the proper RemoveMethod when player leaves a group
--HG--
branch : trunk
2010-10-19 18:32:04 +02:00
Rat b4c62b9646 Typo cleanup! :/
--HG--
branch : trunk
2010-10-17 22:00:40 +02:00
Rat e9fffec5fb removed wrong SetFacing...
--HG--
branch : trunk
2010-10-17 21:26:04 +02:00
Rat ee32b4b39a Core/Objects: added ToUnit(), ToGameObject() (will be used in future)
Core/Unit:
- added SetFacing() function, using proper packet implementetion (spline type)
- added GetAuraCount() function (will be used in future)
Core/Creature: renamed one unknown type_flag

--HG--
branch : trunk
2010-10-17 21:14:08 +02:00