Commit Graph

22309 Commits

Author SHA1 Message Date
Aokromes
4e4f82a3e7 more fix 2017-04-05 02:55:44 +02:00
Aokromes
92816c0f17 Core/Gameobject: destroy test 2017-04-03 12:20:06 +02:00
Aokromes
0decba0ad7 compile fix 2017-04-02 08:15:30 +02:00
Aokromes
9b378447f8 Core/Entities: GameObjectDespawn packet is only sent for GameObjects 2017-04-02 07:57:21 +02:00
Aokromes
2d54defdf0 Scripts/Commands: Fix guid usage and enhance commands
- Fix targeting gameobjects and creatures for .dist and .gps. The old code used DB guid to search from core generated guid lists.
- Fix some error messages saying 'no player found' even if creatures and gameobjects and players were searched
- Change atoi to atoul when receiving lowguids as string or other uint32 values
- Use ObjectGuid::LowType instead of uint32 for lowguid type
- Allow .gob info to take in gameobject guid link as well as entry link in addition to gameobject entry and update the documentation of the command
- Change .gob delete to post the spawnid (dbguid) instead of the ingame generated guid (which is basically never seen or used by the player in any other commands that I see)
- Allow spawntimesecs to be negative when spawning a gameobject
- Disable searching by ingame spawn id in commands. (it makes little sense for a user to provide a number which is then attempted to be used as DB guid and non DB guid when both could have a match)
- Update .gob turn documentation to tell about possibility to provide orientation in command
- Correct the types in .gob add command result trinity_string
- Correct the creature search for .npc del
- Change .event to .event info
- Add .go offset command
- Remove the .go command for empty string (no subcommand given) because it just used .go xyz
- Extend .gob info to show size, faction, flags and model dimensions
- Remove some unnecessary casts
- Document .wp show better (first and last were not documented)
- Insert spawnid to .wp show info error message
- Fix spawntime printing for .gobject target
- Fix guid targetting for .npc set movetype
- Fix query by spawnid for .wp show info
- Fix deleting of existing waypoints when twice doing the command .wp show on
- Fix deleting of existing waypoints when doing the command .wp show off
- Change wpguid column in DB and in core to uint32, which is what the spawnid type is in core and db.
2017-04-02 07:41:03 +02:00
Aokromes
e24178406d Core/AI: Remove incorrect call
By Malcrom
2017-04-01 21:05:09 +02:00
Aokromes
df1730a734 Core/ScriptReloadMgr: Fixed scripts hot swapping on OS X 2017-04-01 07:20:43 +02:00
Aokromes
2f1d6d5597 Core/Scripts: Fix a logic fail that overriden the script of an entity…
… that changed entry
2017-04-01 07:11:25 +02:00
ariel-
66c0c634ad Core/AI: Build fix
- Stop exposing DoublePosition constructor versions, they're only used for internal representation
- Moved IsInBounds function to public scope
2017-04-01 07:06:53 +02:00
ariel-
d3151fed8c Core/AI: AreaBoundary refactor
- Added an auxiliary function IsInBounds to base CreatureAI
- Changed container to vector. Set had no sense because we're storing new pointers, they have different addresses even if the boundary is the same
2017-04-01 07:06:35 +02:00
ariel-
661e150038 Core/Creature: added CREATURE_FLAG_EXTRA_GHOST_VISIBILITY to allowed db flags_extra mask
- Cleaned up the mask to be a much nicer enum definition
2017-04-01 07:06:12 +02:00
ariel-
a3e41a3df6 Core/Global: reserve storage for script names vector 2017-04-01 07:06:02 +02:00
xinef1
8221acd90e Added new creature extra flag which makes npc visible only to dead units
closes #19333

* Rename 9999_99_99_99_world.sql to 2017_99_99_99_world_335.sql

- file affects creature removed in patch 4.0.3a

* Update Creature.cpp
2017-04-01 07:05:39 +02:00
tkrokli
d40b252c01 Game/AI: SMART_ACTION_JUMP_TO_POS should resume path when reached jump location (#19029)
SmartAI NPCs using SMART_ACTION_JUMP_TO_POS
should resume their path when they have reached the jump location.

The changes in this PR makes the action work as intended.

Closes #18760
2017-04-01 07:05:03 +02:00
Aokromes
1bc94173ea Compile fix 2017-03-31 16:03:08 +02:00
sevi
30c23e48be Core/Misc: the battle rezz limit didn't should has a effect in normal/heroic dungeons. They is only for Raids. 2017-03-30 20:24:44 +02:00
ariel-
402ad3dad7 Core/Auras: fix a deleted memory access crash
Closes #19319
2017-03-26 06:15:52 +02:00
ccrs
6f1a3c4b43 Fix warning
field '_top' will be initialized after field '_owner'
2017-03-26 06:15:36 +02:00
ccrs
7ea5c422cb Core/Movement: 96f4c7c followup 2017-03-26 06:15:26 +02:00
ccrs
2683f6cf6b Core/MotionMaster: cleanup use of _expireList
And restore broken _cleanFlag check/use on update (eca3645d8b)
2017-03-26 06:15:18 +02:00
ccrs
5d79ac9275 Core/Unit: cleanup UnitState enum 2017-03-26 06:15:09 +02:00
ccrs
a29bae966d Core/Movement: cleanup MovementGeneratorType 2017-03-26 06:14:57 +02:00
Aokromes
9c5e580c17 Core/Scripts: minor fixes in boss_the_lich_king 2017-03-26 06:13:21 +02:00
ariel-
828101aa2b Core/Scripts: Updated Ulduar instance model
- Codestyle/indent fixes
- Added ObjectData for some GOs
- Added GetUlduarAI to creatures
- Fixed possible out-of-bounds access in boss_razorscale_controllerAI (boss AI number beyond allocated boss size)
2017-03-26 05:46:04 +02:00
Aokromes
d8febab3ad Core/SmartAI: Missing parts on previous commit
By Malcrom
2017-03-26 01:03:41 +01:00
Aokromes
47961b7888 typo fix 2017-03-25 10:33:20 +01:00
Aokromes
55914733a0 Core/Scripts: Add support for spawn specific C++ scripts
By Krudor.
2017-03-25 10:27:51 +01:00
Aokromes
dca200d6b6 Core/SmartAI: Implement SMART_TARGET_VEHICLE_ACCESSORY
By Malcrom
2017-03-23 04:05:15 +01:00
S.V
cdff8ab387 Core/Creatures: Fixed GMs being considered in party/raid with nearby creatures without CREATURE_TYPE_FLAG_TREAT_AS_RAID_UNIT
Ref #19340
2017-03-23 02:15:05 +01:00
Keader
9fb129a1ee Core/Scripts: Fixed wrong calculation of Aura of Desire
Closes #19322
2017-03-23 02:11:58 +01:00
xinef1
c7a2fbed3f Core/Items: Fixed durability problems for wrapped item (#19003) 2017-03-23 02:11:26 +01:00
Aokromes
386e6e5b58 Core/Bnet: SRP6a fix
By Shauren, idk what appened with previous commit
2017-03-23 00:09:29 +01:00
Aokromes
a50db6df81 Core/SmartAI: Add check to SMART_ACTION_PLAY_ANIMKIT to allow zero va…
…lue to remove animKit.
By Malcrom
2017-03-21 23:29:55 +01:00
Aokromes
fd349a493c Core/Creature: Load template immunities into m_spellImmune container.
- Fixes sending SMSG_SPELL_START data
2017-03-20 17:33:51 +01:00
ariel-
d1382c5f23 Core/Spell: fix an issue with vehicle spells changing orientation of base vehicle
Closes #17234
2017-03-20 16:55:01 +01:00
ariel-
35e9c27c4a Core/Entities: don't finalize movesplines before deleting.
- The whole MotionMaster will be destroyed along with the unit, freeing the allocated memory.

Closes #19324
2017-03-20 16:53:54 +01:00
robinsch
73ce0bdade Core/Social: Implement FRIEND_STATUS_RAF (#19317) 2017-03-20 16:53:42 +01:00
Golrag
e4b11f277b Core/Object: Fix Line of Sight issue with object edges
Fixes: https://github.com/TrinityCore/TrinityCore/pull/15807#issuecomment-268077802
2017-03-20 16:53:30 +01:00
jackpoz
d64db19d82 Core/Crash: Refactor and fixes
Code cleanup.
Fix buffer overflow crash.
Fix type being truncated to 199 characters.
2017-03-20 16:53:22 +01:00
ariel-
5f7ac85dca Core/Spell: add assert checks on SpellMgr::CheckSpellGroupStackRules
Ref #19319
2017-03-20 16:53:13 +01:00
ForesterDev
761c0faf72 Core/SocialMgr: fix case when contacts appears in friend list many times
Closes #19306
2017-03-20 16:52:53 +01:00
Chazy Chaz
3f14e4e56e Core/Players: Rename "heroic character" to "death knight" 2017-03-20 16:52:23 +01:00
ariel-
cb8f052a65 Core/Pet: load template immunities when creating (except for hunters)
Fixes #19275
2017-03-20 16:45:17 +01:00
ariel-
f2c7c5cf0c Core/Unit: properly reset displayIds when having a shapeshift aura active
Closes #19309
2017-03-20 16:45:09 +01:00
Aokromes
0016baf3bd DB/Misc: Sync some database fields no with 4.3.4 2017-03-20 14:01:02 +01:00
sevi
a444460f84 Core/Spells: fix next.
i need really a big part of sleep xD
2017-03-19 02:16:16 +01:00
sevi
d497077216 Core/Handler: fix compile 2017-03-19 02:13:33 +01:00
sevi
a608658056 Core/Misc: code style 2017-03-19 02:00:52 +01:00
sevi
d4c703a2e2 Core/Instance: implement the combat resurrection limit.
Cherry Pick from 948146f3ee

I change this a bit, so that this is works right for 4.3.3 Patch. (Here isn't add charges after a specific time. Groups have from begin 1 or 3 Charges for Resurrection.)
2017-03-19 01:55:40 +01:00
Aokromes
26ad72bdb5 compile fix 2017-03-16 02:23:26 +01:00