Commit Graph

291 Commits

Author SHA1 Message Date
Shauren
119bb6fcd5 Core/Units: Fixed SelectNearbyTarget to ignore totems, critters and spirit healers 2011-03-15 12:08:07 +01:00
A Metaphysical Drama
4f48b7ae8d Core/Auras: Fixed SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT and SPELL_AURA_MOD_POWER_COST_SCHOOL auras not taking charges at proc 2011-03-15 11:41:12 +01:00
Shauren
cd5744f2c5 Core/Units: Removed unneeded casts in ApplyResilience 2011-03-14 21:39:53 +01:00
Azazel
6ad4044f05 Core/Mechanics: refactor XP (and in fact, honor/reputation/kill credit) rewarding routine and get rid of copy/pasted code. 2011-03-13 15:28:45 +06:00
Shauren
9710c41a40 More warning fixes 2011-03-08 19:11:02 +01:00
Machiavelli
10c02690b6 Core/Units: Re-remove MOVEMENTFLAG_ROOT applying on Unit::SetRooted to fix a clientside freeze issue (our visibility system is co-reponsible). It's still an ugly hack and should be fixed properly asap.
Closes #879
2011-03-06 16:07:01 +01:00
Machiavelli
d5be3353f3 Core/TempSummon: Implement ForcedUnsummonDelayEvent. Similar to ForcedDespawnEvent for Creatures, this will unsummon TempSummon objects with specified delay.
Core/Vehicles: Implement ForcedUnsummonDelayEvent for creatures exiting vehicles. Fixes visual bug that showed creatures mounted on vehicle after being ejected.
2011-03-06 15:12:34 +01:00
Havenard
222df58340 [Core/PacketIO] Fix issues with Mind Control that was allowing a player to keep interfering other players' movements using Mind Vision 2011-03-06 11:23:34 +01:00
Machiavelli
df97ce7625 Core/Vehicles: Remove redundant Vehicle::Die. All vehicle auras are already removed on Unit::RemoveAllAurasOnDeath.
Addresses ticket:869 - please reconfirm
2011-03-06 10:31:25 +01:00
Shauren
79e660975e Core/Spells: Fixed Heartpierce proc 2011-03-05 18:48:41 +01:00
Machiavelli
a9582964d3 Core/Vehicles: Make the vehicle system more aura driven. Get rid of redundant checks and update relevant data.
Closes #805
2011-03-04 21:17:06 +01:00
Machiavelli
da773981f8 Core/Vehicles: Respect seatId in vehicle_accessory 2011-02-27 17:38:20 +01:00
Machiavelli
683cea9e83 Core/Vehicles:
- Grab correct npc entry from npc_spellclick_spells in case of player vehicle. Fixes DB errors added in my previous changeset
- Allow aura's with SPELL_AURA_CONTROL_VEHICLE to stack if there are enough free seats, even if spellIds are identical.
- Fix a possible infinite loop. Thanks to manuel for spotting
2011-02-27 03:58:41 +01:00
Machiavelli
3ac80ee3a4 Core/Vehicles: Correct usage of npc_spellclick_spells instead of blatant hacks for vehicle entry.
Note: This may break a few vehicles, but only due to the absence of proper, non-hackish data.
2011-02-26 23:00:09 +01:00
Machiavelli
30738e645f Core/Vehicles&Movement:
- Send correct SMSG_MONSTER_MOVE with newly discovered SPLINEFLAG_EXIT_VEHICLE on vehicle exit. Fixes the "stuck on exit" bug as a result of removing the previous hack in 04b656a44f.
- Use SMSG_SPLINE_MOVE_ROOT and SMSG_SPLINE_MOVE_UNROOT as root packets for creatures.
- Reimplement toggling of MOVEMENTFLAG_ROOT on root event (including enter vehicle)
- Speedup in fetching movementflags for vehicles depending on vehicleflags on object updates.
- Code cleanup and refactoring
2011-02-26 03:47:23 +01:00
Shauren
bc94dcfbe4 Core/Spells: Fixed random huge DoT damage ticks
Closes #726
2011-02-25 17:11:02 +01:00
Machiavelli
04b656a44f Core/Vehicles:
- Allow specifying of exit position for Unit::ExitVehicle
- On Vehicle::InstallAccessory, despawn any accessory in the current seat with the same entry with TEMPSUMMON_MANUAL_DESPAWN type
- Remove hacky TELEPORT_ACK packet on vehicle exit
- Remove some redundant packet send operations that were already handled elsewhere
2011-02-25 01:38:21 +01:00
Machiavelli
550f59e05f Core/Vehicles: Do not allow Unit A to enter vehicle of unit B, when unit B is already on vehicle of unit A.
Fixes a core deadlock and stack overflow as well as client crash in the event of improper scripts.
2011-02-23 17:41:33 +01:00
Machiavelli
a6da435b84 Core/Vehicles: Also remove MOVEMENTFLAG_ROOT on ExitVehicle (thanks to Anubisss), and slight refactoring of code. 2011-02-23 04:08:11 +01:00
darkstalker
1646f9d91c Core/Spell Mechanics: introduce global cooldown manager for server-side checks for GCD (ported from mangos) 2011-02-22 17:02:47 +06:00
Machiavelli
8b738d537c Core/Units: Remove hack that caused units with UNIT_STAT_ON_VEHICLE to absorb any incoming damage. 2011-02-22 01:04:56 +01:00
Machiavelli
e07e20ffca Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf. 2011-02-20 20:16:34 +01:00
Shauren
7ac891717c Core/Vehicles: Send proper GUID in SMSG_BREAK_TARGET packet when an unit enters vehicle 2011-02-19 22:50:09 +01:00
Machiavelli
c0b29fd0ad Core/Vehicles: Chart VEHICLE_SEAT_FLAG_UNCONTROLLED and implement usage. Concerns vehicleseat enter/exit capabilities. Fixes vehicles related to Malygos encounter.
Original research by rsa, thanks to Manuel for pointing out.
2011-02-19 21:58:50 +01:00
Azazel
4dc1eaa47c Core/Misc: improve error log messages by adding more info. Specially for Aokromes. 2011-02-17 19:47:08 +06:00
Manuel Carrasco
6b2ffc9039 Core/GuardAI: Guards don't evade if the target casts Vanish and also can detect players with Feign Death.
Core/Scripts: Moved scripts from ScriptedGuardAI to guards.cpp
Core/Creature: Removed custom npcflags UNIT_NPC_FLAG_GUARD (now moved to flag_extras) and UNIT_NPC_FLAG_OUTDOORPVP (not used)

Thanks to Kaelima, Xanadu, Shauren and linencloth.

Signed-off-by: Manuel Carrasco <manue.l@live.com.ar>
2011-02-10 22:36:35 -03:00
QAston
e9bae2d0a0 Core/Auras: Prevent possible crash on SPELL_AURA_DAMAGE_SHIELD aura handler. 2011-02-04 03:14:01 +01:00
QAston
f862db8b92 Core/Unit: Move code using polymorphism out of CharmInfo destructor - fixes issues introduced with 38ea569525. 2011-02-04 02:51:12 +01:00
QAston
38ea569525 Core/Unit: Remove code which depends on polymorphism from Unit class destructor (at destruction time virtual methods aren't working as excpected) 2011-02-04 01:23:49 +01:00
QAston
d18193e52d Core/DynamicObjects: Change the way how dynamic objects are bound to their owners, fixes some crashes in Aura::GetOwner. 2011-02-04 00:27:43 +01:00
Shauren
704e0af9c4 Core/Spells: Fixed Val'anyr, Hammer of Ancient Kings proc 2011-02-01 19:01:56 +01:00
Lazzalf
c0b15c0091 Fixed Judgement of Light not procing for non-mana users
Signed-off-by: Shauren <shauren.trinity@gmail.com>
2011-01-31 15:32:21 +01:00
Shauren
42007bb0a9 Core/Spells: Implemented Druid T10 4P restoration bonus 2011-01-31 14:51:42 +01:00
Shauren
089fd71877 Core/Auras: Fixed damage not being lowered by split damage auras
Closes #203
2011-01-31 12:17:44 +01:00
DrTenma
59448fddc4 Core/Spells: Fixed Judgements of the Just
Signed-off-by: Shauren <shauren.trinity@gmail.com>
2011-01-30 19:14:18 +01:00
johnholiver
ce4aca9011 Core/Spells: Move Glyph of Smite code to a better location.
Signed-off-by: Shauren <shauren.trinity@gmail.com>
2011-01-28 11:22:52 +01:00
leak
137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Machiavelli
17971acddb Core/Players: Implement generic SendClearFocus instead of magic SMSG_BREAK_PACKET randomly in the middle of code. Also preallocate correct size for packed guid. 2011-01-25 08:04:47 +01:00
Machiavelli
0796889c21 Core/Vehicles: Hotfix for client freeze on vehicle enter by reverting certain changes to SMSG_MONSTER_MOVE_TRANSPORT. Still have to figure out the correct structure in the future. 2011-01-22 19:55:50 +01:00
Spp
bd2728eb74 Core: Fix some warnings 2011-01-11 11:18:00 +01:00
Shocker
f03040b5b3 Core/Spells: Glyph of Polymorph should remove leech auras too, fixes #171 2011-01-11 00:57:20 +02:00
Shauren
870add0a3d Core/Spells: Fixed Spirit Walk ability of shaman's Feral Spirit summons
Closes #115

Signed-off-by: Shauren <shauren.dev@gmail.com>
2011-01-10 22:01:19 +01:00
Machiavelli
01d4080b4d Core/Units: Send proper orientation in SMSG_MONSTER_MOVE_TRANSPORT
Also get rid of the 100 constant in moveticks segment and use getMSTime() for consistency sake
2011-01-09 16:22:04 +01:00
Sarjuuk
8859aa689c Core/Spells: Implemented Improved Faerie Fire crit chance increase effect
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-01-06 21:37:16 +01:00
click
1251cf3f10 Fix typo (Note to self: USE THE RIGHT BRANCH WHEN DOING TESTCOMPILES!) 2011-01-05 18:18:37 +01:00
click
8bfc49cfa5 Core/Entities: Send SMSG_DISMOUNT notification to client when dismounting (mount/vehicle).
Thanks to Vladimir.
2011-01-05 17:55:57 +01:00
Machiavelli
eac259f75f Core/Units: Call Unit::InterruptNonMeleeSpells before RemoveFromWorld to make GetCaster() return a valid pointer on AuraEffect unapply methods.
Fixes a crash in VisitorHelper related to Mind Vision.

closes #43
2011-01-04 23:43:20 +01:00
Shauren
a3eff12b33 Core/Auras: Fixed transform aura stacking logic 2011-01-02 17:22:45 +01:00
Shauren
eec299e605 Core/Spells: Cleaned up Shaman 4P Enhancement and Paladin 2P Retribution set bonus code
SQL: Added missing sql for that revision, thx cyberbrest

Closes #12
2011-01-02 16:27:38 +01:00
leak
a7dadcb51c Prevent infinite absorption (and spell damage from Incanter's Absorption) when Chaos Bolt hits Mana shield. Patch by johnholiver.
Fixes #7
2011-01-02 13:42:14 +01:00