Commit Graph
53 Commits
Author SHA1 Message Date
Xanadu 7fbeef3d09 Cleaned up and unified various sort predicates and moved them to Trinity namespace, replaced priority queues with sorts and purged some unused code.
--HG--
branch : trunk
2010-05-30 04:23:27 +02:00
Trazom62 7ac8e6571d Fix compile on linux for previous commit. Thanks click for testing.
--HG--
branch : trunk
2010-05-27 22:40:47 +02:00
Trazom62 452675e500 Fix Vigilance.
Implements Glyph of Vigilance.
Fixes issue #1134. Thanks Bodompelle for the idea, even thought the fix is rather different.

--HG--
branch : trunk
2010-05-27 21:11:38 +02:00
Spp 74dd02d024 Remove LOTS of compile warnings
--HG--
branch : trunk
2010-04-19 09:26:37 +02:00
Spp 2454c290b8 Code Style (game + scripts only):
"==" --> " == " (when needed)

--HG--
branch : trunk
2010-04-07 23:25:02 +02:00
Spp 49d05ba9aa Code style (game + scripts only):
"( " --> "("
" )" --> ")"

--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp d19e127080 Code style (game + scripts only):
"if(" --> "if ("

--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp 8034a6c48e Rename 'Hostil' to 'Hostile'
Credits to NoFantasy (Mangos)
Closes issue #411

--HG--
branch : trunk
2010-03-09 11:11:10 +01:00
raczman 07f3b91426 Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()

--HG--
branch : trunk
2010-03-07 18:30:53 +01:00
raczman 91b8ee104e Added new type-safe cast functions.
This, when properly used, should get rid of most memory corruption issues,
currently, casting types C-style with no checks leads to some abstract crashing.
Functionality is same as with dynamic_cast<>, but with no RTTI check - so when
casting into invalid type you will receive NULL, and most probably crash.
At the same time, i took the liberty to convert most Player* casts to ToPlayer().
Still needs crapload of casts being moved to new facility.

--HG--
branch : trunk
2010-03-07 15:20:19 +01:00
Trazom62 c4eb172d04 Fix Script Naxxramas/Gothik with help of scarymovie87
Fixes issue #80.

- Implement support for "merging" life and dead side after ~2 minutes, if group is not splitted
- Implement support for opening central gate at 30% boss health
- Implement Gothik teleport between side when above 30% boss health
- Fix dead-side mobs spawn in 25-Man difficulty
- Fix waves setup.
- Fix some timers (this may still need some tuning).
- Fix sporadic combat reset when Gothic teleport to ground.

--HG--
branch : trunk
2010-01-17 10:58:11 +01:00
n0n4m3 99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
QAston 8e9d2cdf01 Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
  * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
  * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
  * Aura data is shared for all units which have AuraApplication of the Aura
   * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
  * Remove spell source and AreaAuraEffect classes
  * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
  * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
  * AreaAura updates are done in owner _UpdateSpells cycle
  * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
  * And you can access area aura target list
  * Add basic support for aura amount recalculation
  * Save recalculation state and base amount of auras to db
  * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
  * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
  * Sort aura effect handlers in SpellAuras.cpp and .h by their use
  * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
  * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
  * Send aura application client update only once per unit update - prevent unnecesary packet spam
 * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
 * Fix memory leak at player creation (not deleted auras)
 * Updated some naming conventions (too many to mention)
 * Added Unit::GetAuraOfRankedSpell() function
 * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
 * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
 * Implement AURA_INTERRUPT_FLAG_LANDING
 * Implement EffectPlayerNotification (thanks to Spp)
 * Remove wrong aura 304 handler
 * Add better handler for death runes
 * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
 * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
 * Add many assert() procection from idiots using some functions in wrong way
 * I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please

--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
maximius 654519d1a6 *Some cleanup (mostly whitespace changes)
--HG--
branch : trunk
2009-11-20 19:11:28 -08:00
maximius d22768a6b5 *Cleanup
--HG--
branch : trunk
2009-10-18 18:38:46 -07:00
maximius 3f338cc1c3 *Massive cleanup redux.
--HG--
branch : trunk
2009-10-17 16:20:24 -07:00
maximius e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius 26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
megamage ab5f515f21 *Update flame levi script. Allow player to shoot down pyrite container and refill the demolishers.
*Other script-related fixes.

--HG--
branch : trunk
2009-08-28 11:26:20 -05:00
megamage 2ecd247dd4 *Remove a check in getreferencebytarget. If a crash happens, the check should be made in the high-level function but not low-level function.
--HG--
branch : trunk
2009-08-21 10:49:19 -05:00
Machiavelli 3dda9caedd * Partial revert of last changeset, double nullpointer check is not needed since everything seems to go via ThreatContainer::getReferenceByTarget
--HG--
branch : trunk
2009-08-21 16:09:46 +02:00
Machiavelli cc4ae11383 * Fix some crashes in ThreatContainer
--HG--
branch : trunk
2009-08-21 16:07:12 +02:00
megamage e03b7cd4d7 *Change react state of guardian back to aggressive. Instead check threat radius in canstartattack to prevent them attack too far target.
--HG--
branch : trunk
2009-08-15 14:30:14 -05:00
megamage 8fedc832e8 [8163] Fixed typo and wrong check affecting threat calculation. Author: SeT
--HG--
branch : trunk
2009-07-12 18:06:19 +08:00
thenecromancer 66e890b470 *Fix application of thread mod auras.
--HG--
branch : trunk
2009-07-02 15:24:24 +02:00
QAston 69f36d7af4 *Send threat messages to client - thanks to megamage for research.
--HG--
branch : trunk
2009-07-02 00:03:57 +02:00
megamage 38f4a60beb *Correct some aura interrupt flags
--HG--
branch : trunk
2009-05-26 16:00:19 -05:00
megamage 8a44eff53a *Fix a typo that break the whole threat system.
--HG--
branch : trunk
2009-05-22 03:05:59 -05:00
megamage 1cfc04f1f5 [7745] Fixed gcc warnings. Author: AlexDereka
--HG--
branch : trunk
2009-05-03 22:21:46 -05:00
megamage de11b9e901 [7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
megamage 752aeef1c3 [7618] Fixed: Prevent adding threat to dead creature and for dead target. Author: VladimirMangos
Also remove horriable typecast in ThreatManager code and some other cleanups.

--HG--
branch : trunk
2009-04-05 17:05:10 -05:00
megamage 328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage 31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
megamage 7bff1c1d60 *Fix a crash caused by misdirection.
--HG--
branch : trunk
2009-02-18 11:01:21 -06:00
KingPin 14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage 4d008f2043 Replace tabs with spaces, and fix crlf issues
--HG--
branch : trunk
2009-02-04 10:33:18 -06:00
Drahy 5dab980495 * Updated copyright notice for new year (2009) part 2
* Changed mangos website

--HG--
branch : trunk
2009-02-04 12:42:26 +01:00
Drahy 7c19c420c6 * Updated copyright notice for new year (2009) part 1 - Mercurial cant convert all files at once
--HG--
branch : trunk
2009-02-04 12:04:12 +01:00
megamage fa2e6622ad *Merge.
--HG--
branch : trunk
2009-01-16 22:59:24 -06:00
megamage 6a66df09eb *Fix misdirection.
--HG--
branch : trunk
2009-01-16 18:49:41 -06:00
megamage 13cfff2327 *Mangos [7023] Remove not used useCharges for IsImmunedToSpell/IsImmunedToDamage. By DiSlord.
--HG--
branch : trunk
2009-01-04 16:45:32 -06:00
megamage 1e4381f7b1 *Update to Mangos 7006.
--HG--
branch : trunk
2009-01-02 11:03:43 -06:00
megamage 3d1d454055 *Update to Mangos 6989.
--HG--
branch : trunk
2008-12-30 16:03:36 -06:00
megamage 409100869c *Creatures no longer prioritize attacking unfeared targets over feared targets. By Tassader2.
--HG--
branch : trunk
2008-12-21 18:52:23 -06:00
megamage ac5bf63acd *Fix misdirection.
--HG--
branch : trunk
2008-12-17 20:07:25 -06:00
megamage ce643187f0 *Update to Mangos 6888. Source: Mangos.
*Major change: Make corpse erase async, Avoid DB access on deleting guild member.
*Skip 6885 because of performance concern.

--HG--
branch : trunk
2008-12-08 16:34:03 -06:00
megamage 3a1293ef18 *Update melee range calculation. By QAston.
--HG--
branch : trunk
2008-12-05 18:39:31 -06:00
visagalis d1e759479b [svn] *** Source: MaNGOS ***
* Fixed build extractor at Windows Vista. Author: Vladimir
* Fixed comment text and code indentifiers spelling. Author: Vladimir & Paradox.
* Access cached member lists in guild handlers instead of querying the DB. Author: Hunuza
* Small fixes in send/received packet and simple code cleanup also. Author: Vladimir
* Not output error at loading empty character_ticket table. Author: Vladimir
* Not reset display model at shapeshift aura remove if it not set at apply. Author: Arthorius
* Applied props to few files.

--HG--
branch : trunk
2008-11-14 16:28:45 -06:00
gvcoman 78647da51d [svn] Fixed charmer or possessor not being entered in the threat lists of creatures who are being attacked by the charmed or possessed unit.
--HG--
branch : trunk
2008-11-08 17:46:34 -06:00
w12x b8362cd7f1 [svn] Fixed copyright notices to comply with GPL.
--HG--
branch : trunk
2008-10-23 03:29:52 -05:00