Commit Graph

3761 Commits

Author SHA1 Message Date
Shocker
97f5a06d34 Merge pull request #5742 from MrSmite/PetAI_1
Core/Pets: Correctly obey the stay command for pets when attacking in melee range
2012-03-16 15:00:09 -07:00
Kandera
aad4e41ca5 Core/Spells: finish fixing dispel functionality. closes #5745 2012-03-16 17:59:10 -04:00
kaelima
23c5ce0e0a Core/Unit: Fix some movement issues when leaving vehicles introduced in dce0a7d184
Sorry about that.
2012-03-16 22:52:20 +01:00
MrSmite
a26e145ae7 Fix for pets moving from stay during combat
Closes #5612
2012-03-16 15:53:07 -04:00
Machiavelli
65453620e8 Core/Movement: Do not process server side relocation if reading movementinfo from client resulted in violations (= hacking). 2012-03-16 18:15:08 +01:00
Machiavelli
cca93c7a22 Minor typo, major consequences. 2012-03-16 17:27:24 +01:00
Machiavelli
df31af5b4f Core/Movement: Add server-side check for movementflag correction in previous commit. This effectively prevents (most if not all) flyhacking. 2012-03-16 17:21:15 +01:00
Machiavelli
f8c04b1bc5 Core/Movement: Fix players still able to fly on SPELL_AURA_FLY and SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED unapply.
Closes #5731
2012-03-16 17:10:01 +01:00
Kandera
bea8fcfbfa Core/Spells: fix shield slam giving nothing to dispel error. 2012-03-16 09:08:46 -04:00
Shauren
a50fbb45be Core/DBC: Updated ScalingStatValues format string 2012-03-16 12:43:07 +01:00
Shauren
a3d7caba8a Core/Opcodes: Defined a new opcode 2012-03-16 12:34:37 +01:00
kaelima
ef53bde176 Core/Spell: Add some missing cast results which require additional data when sent. And rename two researched castflags (thanks TOMRUS) 2012-03-16 08:59:18 +01:00
kaelima
dce0a7d184 Core/Misc: Random cleanup 2012-03-16 08:57:42 +01:00
kaelima
acb3fde355 Core/DBC: added cloak mask to armorMod and did some cleanup in ScalingStatValuesEntry 2012-03-16 08:56:06 +01:00
Kandera
b23ff228a4 Core/Spells: Used correct implementation for checking if a spell effect targets an area. 2012-03-15 14:14:42 -04:00
Kandera
5406a0fd93 Core/Spells: Fix bugged mass dispel after previous commits 2012-03-15 14:12:40 -04:00
Kandera
fe46cf9796 Core/Spells: Fix being unable to use spells due hasDispellableAura being false if no spell effects were SPELL_EFFECT_DISPEL 2012-03-15 12:41:16 -04:00
Kandera
5e25791bff whitespace cleanup 2012-03-15 11:08:45 -04:00
Kandera
01bc6c483b Core/Spells: add correct checking for dispeling errors. Fixes spammable cleanse. 2012-03-15 10:56:56 -04:00
Shauren
84891377b5 Core/Spells: Fixed copy paste mistake that caused all area spells to search targets starting from caster's coordinates instead of targeted destination 2012-03-15 13:15:25 +01:00
Shauren
313802a4ed Core/Movement: Added more movement flags that cause units to select flight speed instead of run 2012-03-15 13:14:42 +01:00
Machiavelli
7d60290c2e Core/Units: Offset z coordinate only if MOVEMENTFLAG_HOVER is present, not MOVEMENTFLAG_DISABLE_GRAVITY.
(Remnant from an early incorrect version of my UNIT_FIELD_HOVERHEIGHT patch)
2012-03-15 10:16:08 +01:00
Machiavelli
e17a9cfb85 Core/Movement: Add server side filters for MOVEMENTFLAG_WATERWALKING, _FALLING_SLOW and _HOVER depending on required aura types. Fixes exploiting when aura unapply packets (such as corrected in previous commit) are blocked/altered before reaching the client. 2012-03-15 10:12:43 +01:00
Machiavelli
afaed98b7a Core/Movement: Send correct packet to client when unapplying hover, feather fall and water walking auras.
Closes #5704
2012-03-15 10:03:25 +01:00
leak
2a5caef4a6 Revert "Core: more more cleanup" - Build test anyone?
This reverts commit 20cd4c71ee.
2012-03-14 18:51:51 +01:00
thomas33
20cd4c71ee Core: more more cleanup 2012-03-14 17:51:11 +01:00
Shauren
1dde22394c Core: Corrected conflicting variable names 2012-03-14 00:21:46 +01:00
Shocker
ae27a2cf51 Merge pull request #5690 from thomas33/master
Core/Misc: Remove hungarian notations
2012-03-13 14:41:53 -07:00
thomas33
cae662d191 cleanup 2012-03-13 15:48:18 +01:00
thomas33
0532afed90 more cleanup 2012-03-13 14:53:36 +01:00
Bezo
11b71bfa4b Logs/Arena:
Add match type for extended arena logs for statistics
Add match type for winner logs.
2012-03-13 01:16:04 +02:00
Shauren
671fd4176a Core/GameObjects: Chests will now remain locked for players who left the group if loot from that boss is stored in it (note: this is just an implementation of locking the chest, they still need to be linked to a boss - not yet implemented) 2012-03-12 18:07:34 +01:00
kaelima
6217583627 Core/Map:
- Remove mysterious restriction in visibilityhelper for gameobjects
- Some cleanup in CheckAreaExploreAndOutdoor() and GridDefines.h
- Set nocreate for cells visited in Map::VisitNearbyCellsOf
2012-03-12 04:33:24 +01:00
Machiavelli
03a24a84e4 Core/Units:
- Implement UNIT_FIELD_HOVERHEIGHT (requires DB data). This field, sent in update object packet, will determine the height at which a creature hovers if it has movementflag_hover applied. Note that hovering will now update the server-sided z-coordinate by the value of this field, and that all subsequent positional updates to the client will need to send z coordinate MINUS the hover height offset, or the hoverheight will be visually doubled client side.
- Correct our usage of movementflag_flying, movementflag_can_fly, movementflag_hover and movementflag_disable_gravity (previously levitate), and how they relate to InhabitType in the database. This fixes "flying creatures on steroids" bug (wings flapping too fast), and potentially a lot of visual issues in AI scripts. Note that a lot of scripts still set wrong movementflags, these need to be fixed on a case by case basis.
- Send correct packets for SPELL_AURA_FEATHER_FALL, SPELL_AURA_WATER_WALK and SPELL_AURA_HOVER apply/unapply.
- Send correct packet contents for movement update in Unit::SetSpeed.
- Misc. cleanup in affected scripts.
2012-03-12 00:53:45 +01:00
Nay
2b2d054f64 R.I.P SimpleAI
- Convert SimpleAI to (DB) SmartAI
- Spell ids corrected (and completed some of the scripts)
- Random cleanup (code style) in some scripts
2012-03-11 16:59:17 +00:00
Shauren
036dae5a36 Merge pull request #5631 from joschiwald/crashfix
Core/CreatureTextMgr: Fix crash in GetLocalizedChatString()
2012-03-11 07:18:38 -07:00
Machiavelli
b1a8570a30 Core/Spells: Fix item target selection in Spell:SelectImplicitTargetObjectTargets. Typo spotted by zwerg 2012-03-11 14:52:11 +01:00
Shauren
f85fdbebe7 Core/DBC: Remove store getters (useless since we don't have scripts as external dll) 2012-03-10 20:53:26 +01:00
joschiwald
1ddf039de8 Core/CreatureTextMgr: Fix crash in GetLocalizedChatString() 2012-03-10 20:21:27 +01:00
Subv
7c42cd76e4 Core/Conditions: Prevent crash at Spell::CheckCast if Condition::Meets returned prematurely 2012-03-09 17:15:22 -05:00
kandera
c9b6d73615 Core/Player: Fix auras getting applied on water walk 2012-03-09 09:18:34 -05:00
Spp
f1949b20a6 Some random cleanup here and there 2012-03-09 13:42:52 +01:00
Shauren
a1a7a2d7c0 Core/Players
* Add liquid special aura only if player is in it (not when above)
* Use CastSpell instead of AddAura - checks all dbc conditions on spell
2012-03-07 18:57:47 +01:00
Spp
f495e0efe4 Warning fixes and some random cleanup here and there 2012-03-07 14:09:18 +01:00
Shauren
e5d23103f3 Core/Maps
* Corrected liquid type extraction in maps - MCLQ chunk must be parsed together with MH2O (they stack)
* Fixed liquid detection in WMO objects
* Implemented LiquidType.dbc use, players will now get proper auras in special liquids
* Turned off slime damage by default (Naxxramas uses periodic damage aura for this purpose)
* Implemented liquid type overrides basing on area/zone
* Renamed final temp_gameobject_models to GameObjectModels.dtree (the temporary one produced by vmap extractor remains unaffected)

Note: Map and Vmap re-extraction is required
2012-03-07 13:09:35 +01:00
click
a153e0ca06 Core: Remove some whitespace and tabs 2012-03-07 00:05:34 +01:00
leak
cd574eb23b Core/Warden: Move Sent check ids log to debug log 2012-03-06 17:22:58 +01:00
joschiwald
7683297423 Core/CreatureTextMgr: Fix typo in LoadCreatureTextLocales() 2012-03-05 23:23:23 +01:00
Kandera
429f4b0c20 Core/DBCStruct: update the info for liquidtype (even though it is currently commented out) 2012-03-05 11:01:04 -05:00
Kandera
680a7083ff Core/Misc: add level to login/logout logs, it will help to find xp exploits (aokromes) 2012-03-05 10:58:52 -05:00