Commit graph

845 commits

Author SHA1 Message Date
VladimirMangos
6154cb3b43 [10749] Convert Gameobject owner to objectguid use. 2010-11-19 20:55:19 +03:00
VladimirMangos
12b80fec68 [10747] Some other aura caster object guid use cases. 2010-11-19 18:36:43 +03:00
QAston
f27741460f [10742] Add spell_bonus_data.spell_bonus_data field and support for RAP bonuses use for spells damage from table.
Thanks to insider42 for prepering patch for mangos repo.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added loading check for redundant ap/ap_dot data in table.
2010-11-19 05:23:29 +03:00
NoFantasy
21d63d491b [10741] Add AI function OwnerKilledUnit for protector pets (when owner kills unit)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-19 01:56:52 +01:00
VladimirMangos
f9bcfa3a89 [10739] Cleanup pet remove code and some fixes.
* Merge Player::RemovePet and Pet::Remove function code to Pet::Unsummon
  This let be sure that in all cases all required steps doen. For example this fix
  creature's guardians propertly remove from guardians list.
* Add new pet save mode PET_SAVE_REAGENTS as replacement PET_SAVE_NOT_IN_SLOT+true-arg stable pair in old function args
  This will avoid use reagent save arg with wrong different save modes.
* Fixed recently added code with absent check for re-summon protector pet call.
2010-11-19 02:17:55 +03:00
zergtmn
5579471075 [10736] Fixed unexpected typo in prev. commit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-18 22:26:46 +03:00
VladimirMangos
876458c6e4 [10735] Fixed spell 51420 work by use recently added protector pets as expected.
Thanks to NoFantasy for problem research (and prev. new pet type adding case research aslo) ;)
2010-11-18 22:21:31 +03:00
Ambal
f67d89f109 [10727] Map system re-engineered. Special thanks to Blueboy for tests.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-16 21:08:28 +02:00
tomrus88
76dfdd336f Backports from 400 branch. 2010-11-15 18:01:45 +03:00
VladimirMangos
3b0e926788 [10717] Revert "[10716][10688] New version of patch for send real diff from last update."
This reverts commit 8398a55fa274471daae115e00c627b299a3fdbbd.
This reverts commit 06e2d6859ba3d7fd47be72c23a64e68ae039701f.
2010-11-10 06:29:49 +03:00
VladimirMangos
534ff29f15 [10711] Check localization data for existance main table entres.
Data will skipped for nonexistent entries, and reported with
disabled LogFilter_DbStrictedCheck filter.
2010-11-09 20:26:59 +03:00
eggxp
11f13e10bd [10707] Move Glancing Blow early in melee outcome results.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-09 05:32:29 +03:00
michalpolko
71b50e6e42 [10703] Check SPELL_ATTR_IMPOSSIBLE_DODGE_PARRY_BLOCK for special attacks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-08 23:25:50 +03:00
VladimirMangos
10d3d3ce24 [10692] Fixed some GCC warnings and code errors.
Thanks to freghar for provide cleaned list of warning messages.
2010-11-07 21:30:55 +03:00
VladimirMangos
e219ee99bb [10688] New version of patch for send real diff from last update.
In new version last update time stopred for specific Cell that store all world objects
placed in it. All objects of Cell updated (or not updated) in same time.

Original version provided by ciphercom.
2010-11-06 22:59:54 +03:00
VladimirMangos
464908f453 [10687] UInt32 timer class copies instead using time_t timers for mstime cases.
Also cleanup weather update code and some random code cleanups.
2010-11-06 22:51:40 +03:00
VladimirMangos
0847d4c8cd [10683] Revert "[10677] Send to creature/etc Update call real diff from last update and use it."
This reverts commit 10784a8c7cc81c468b5411e973d36ecf31de9603.

Main reason: impossibility for me as commiter test problem and fix all corner cases problems.
2010-11-05 19:54:31 +03:00
cipherCOM
555c1a9094 [10677] Send to creature/etc Update call real diff from last update and use it.
Now in case when creature/etc some tices not updates in result stay
in not active (no near players or active objects) cell some important
timers (corpse decay, summon timers, group loot expire, aura durations, etc) will
updates at real diff time from last prev. update call.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

For some systems added exclude use real diff time because current limitations
like move generators. So its stay use last tick diff and considered freeze and
skip all time while creature in not active map part.
2010-11-03 07:07:13 +03:00
mns
54d0c9b77d [10672] Allow damage own pet in sanctuary.
Also mome repeating code to new function.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 14:57:54 +03:00
VladimirMangos
a32d68febd [10671] Convert some Unit owner/etc guids to ObjectGuid way. 2010-11-01 13:19:50 +03:00
SilverIce
1871cf977f [10653] Implemented MSG_MOVE_KNOCK_BACK opcode
* Player's knockback movement now smooth and doesn't looks like teleporting
 * Cleanup WorldSession::HandleMovementOpcodes, separated opcode specific and generic movement handlers code
 * Handle Feign Death aura interrupting into more appropriate place
2010-10-28 05:48:43 +03:00
Laise
8f71d95c0d [10642] Implement spell 56826 2010-10-25 15:20:28 +02:00
VladimirMangos
691412d05c [10636] Implement server side check combo points req. for spell cast.
Thanks to nos4r2zod for problem research.
2010-10-21 15:00:56 +04:00
VladimirMangos
31c9efd219 [10629] Drop function GuidHigh2TypeId
Added ObjectGuid version Aura::GetCasterGuid()

But for prevent big problen with backporting AuraHolder
to mangos-0.12 in most cases still used old uint64 version
Aura::GetCasterGUID.

Recommended use new version where possible in clean way
as done for some cases in commit already.
2010-10-20 09:12:43 +04:00
VladimirMangos
c955941b55 [10627] Use ObjectGuid for player's selection and unit's target 2010-10-20 08:19:48 +04:00
zerg
3c6d5e985f [10620] Fixed MSG_MOVE_HEARTBEAT structure.
Thx Wojta for pointing.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-10-19 00:55:26 +04:00
DasBlub
fc5dd54f37 [10612] Revert "[10611] Made some values const"
Reason: It makes no sense to make a local variable const.

This reverts commit 49e3184d69056738701bc15d9b7f982bf11d7bbc.
2010-10-15 22:29:10 +02:00
Reve
47d971c7f9 [10611] Made some values const
Signed-off-by: DasBlub <dasblub@gmail.com>
2010-10-15 22:14:42 +02:00
DasBlub
61102e3b16 [10610] Renamed some functions from the Creature class
Also other classes have been affected, due to the use of search&replace.
This will probably break some patches and 3rd party libraries, so make sure to update them if required.
Thanks to Phille for the original idea and patch!
2010-10-14 22:07:04 +02:00
MrLama
699a22b2de [10608] Update melee miss chance calculations...finally.
Also thanks to Revils for correcting effective skill for spells that don't use weapon despite being melee/ranged ability.

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2010-10-14 15:10:32 +02:00
NoFantasy
df4563e653 [10606] Fix loot for victims being creature type critter
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-14 09:41:14 +02:00
VladimirMangos
41e41947e7 [10572] Drop unused Spell::m_triggeringContainer 2010-10-01 17:00:08 +04:00
Laise
a67b6a1da5 [10570] Store spell entry of triggering spell on triggered, original patch provided by insider42 2010-10-01 13:17:28 +02:00
VladimirMangos
be07edb8a1 [10564] Not allow charmed by player creatures have threat list.
Original patch provided by zergtmn.
2010-09-30 22:30:40 +04:00
VladimirMangos
98f36e4652 [10562] Cleanup WorldSession::HandlePetAction
Also fixed attack target seelction base at packet content instead direct player selection.
Remove unneded arg for Unit::SendPetAIReaction.
2010-09-30 20:39:13 +04:00
DasBlub
f8ff8d78ea [10557] Add optionial arg to Unit::SetFacingTo which is passed to SendMessageToSet 2010-09-29 22:08:13 +02:00
nos4r2zod
96b317eea4 [10531] Spells with SPELL_ATTR_EX6_NO_DMG_PERCENT_MODS must ignore all damage mods
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-25 10:27:22 +04:00
VladimirMangos
2170c9c919 [10529] Water level in movement use fixes.
* Move selection allowed upper and lower heights for target point
  into near point core function used for contact/close point selection.
  Selection base at possibility target point searcher fly/swim(or walk by water bottom).
* Use vamp water level data so have proper water level in instances in movements.
* Use increased ground search distance for water level case.
2010-09-25 08:01:28 +04:00
darkstalker
3a8ad26a5e [10526] Implement server side global cooldown check.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also pet/controlled unit global cooldown code replaced by new placed in charmInfo structure.

Thanks to nos4r2zod for testing and gcd range check implement.
2010-09-24 06:07:26 +04:00
VladimirMangos
e3d7b114c6 [10514] New option PetUnsummonAtMount
Make possible disable pet unsummon for non-fly mounts (1.x way work)
2010-09-22 07:40:39 +04:00
VladimirMangos
b0edd807d7 [10513] Clear grid *Check/*Searcher clases use
* Check class considered have all info select  object in world from suggested but grid walker list in some grid.
  This also meaning that Check must always have focus object around that (and in same phase) fit objects must be.
* Searcher only must ask Check and know how from all objects fiting to Check select result object(s).

For this reason and for better compatibility removed first arg (searcher) form all Searcher classes.
Instead expected used Check::GetFocusObject() object if need ( by always need check and simolify Check classes
phase checked in Search classes). This also restore source code compatibilty in related lines with prev.client
version branches code.

* While focus object adding fixed possible wrong phase object selection at stealth detection and at corpse searches.
2010-09-22 06:25:21 +04:00
VladimirMangos
14a240361d [10511] Fixed SPELL_AURA_MOD_COMBAT_RESULT_CHANCE dodge chance apply to auto-attacks result. 2010-09-20 14:20:34 +04:00
Lynx3d
47397ff19b [10509] Fix some "foo initialized after bar" gcc warnings and remove some unused variables. 2010-09-20 10:07:25 +02:00
Chipleo
e766102457 [10504] Prevent damage player in sanctuary by pet or other controlled unit.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-19 02:24:04 +04:00
Laise
abbf4f5331 [10486] Use casterGUID check for delaying holder since possible stacking same spell from different casters 2010-09-15 11:36:04 +02:00
darkstalker
63cdd66bcb [10485] Check school mask for SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE
* Some spells expect this.
* Check SPELL_AURA_MOD_PET_AOE_DAMAGE_AVOIDANCE just for similarity,
  currently no spels with aura 310 with special school masks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-15 03:17:38 +04:00
darkstalker
919dc87bac [10479] Implement heak absorb for periodic heal
Also fix SMSG_PERIODICAURALOG for periodic heal for 3.5.5

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-13 03:10:10 +04:00
Laise
b91f914dbc [10476] Fix 31228 and ranks 2010-09-12 16:52:26 +02:00
VladimirMangos
84a915e1b1 [10475] Implement SPELL_AURA_HEAL_ABSORB (301)
Used for example in spells 66237 and 70659.

Also rename CalculateAbsorbAndResist -> CalculateDamageAbsorbAndResist
2010-09-12 02:45:26 +04:00
LordJZ
31ea979c7c [10473] Fix structure SMSG_SPELLHEALLOG for 3.5.5
This also fix proper show critical heals

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-12 01:27:57 +04:00