Commit Graph
8148 Commits
Author SHA1 Message Date
silver1ce 9a8f10fa30 avoid send movement packet at death twice, cleanup
--HG--
branch : trunk
2010-03-07 18:17:37 +02: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
thenecromancer aeebe57dc0 Remove 94567c94e6, instead don't check range/facing when finishing instant cast spells
--HG--
branch : trunk
2010-03-07 14:32:53 +01:00
thenecromancer 34bc948f37 *Format BattleGroundSA.cpp
*Check if game is still in progress before awarding teams
*Resurrect and refresh players at round end

--HG--
branch : trunk
2010-03-07 14:16:55 +01:00
silver1ce 0c11fcee1b check creature's base stats table in more proper way
it should show more missing data

--HG--
branch : trunk
2010-03-07 03:45:22 +02:00
silver1ce efb123f4f7 prevent stack overflow caused by MoveInLineOfSight calls
should close #995 issue

--HG--
branch : trunk
2010-03-06 18:18:32 +02:00
XTZGZoReX a135d9e6c7 * Fix typo in opcode name.
--HG--
branch : trunk
2010-03-06 14:28:11 +01:00
thenecromancer 7e99e2f9cc Send movement packet on creature/player death (expected for animation display, don't ask me why)
Don't bother in case of flying creatures, as there's already something sent

--HG--
branch : trunk
2010-03-06 13:14:51 +01:00
_manuel_ 1a4c7c34fe Fix SoTA draw game by Gyullo.
--HG--
branch : trunk
2010-03-05 14:43:19 -03:00
Spp 9dd9096d57 Fix a typo in trinitycore.conf.dist added in rev 8529262de6.
Closes #887

--HG--
branch : trunk
2010-03-05 12:42:03 +01:00
p0wer 4b5a3f41ab Fix Shadow Affinity. Patch by Ouden. Fixes issue #988.
--HG--
branch : trunk
2010-03-04 17:49:10 -06:00
p0wer 7afa2ad651 Once again change values for BattleGroundSA honor reward at end. Sorry for misreading, it is a multiplier not the total honor.
--HG--
branch : trunk
2010-03-03 17:51:51 -06:00
p0wer 94b1feb5fb Fix command .go ticket. Will properly work now rather then show syntax error. Fixes issue #465.
--HG--
branch : trunk
2010-03-02 21:49:23 -06:00
Brian 2278f6ac45 * Add change to characters.sql from last commit
--HG--
branch : trunk
2010-03-02 20:21:17 -07:00
Brian c9488f5ebe * Fix blob conversion SQL to allow for proper value for watchedFaction
--HG--
branch : trunk
2010-03-02 20:17:51 -07:00
p0wer c89ccd6149 Move initialization of m_GMticketid to avoid random numbers being assigned if gm ticket table is empty.
Thanks Ayane. Closes issue #883.

--HG--
branch : trunk
2010-03-02 21:00:33 -06:00
p0wer 9bb97dd51e If stealth-only spell fails, shouldn't remove you from stealth. Fix by lol584. Closes issue #99.
--HG--
branch : trunk
2010-03-02 20:54:27 -06:00
p0wer 7f5a4feba7 Fix values for honor gain after SotA end. Someone slap me, because I cannot get things right on the first time, ever. :P
--HG--
branch : trunk
2010-03-02 20:48:40 -06:00
p0wer 8f74403b0d Missed change from last commit. These variables aren't needed.
--HG--
branch : trunk
2010-03-02 20:40:36 -06:00
p0wer 8ae9b39689 Add correct values for honor gain after SotA. Also, fix issues with compiling with the recent patch.
--HG--
branch : trunk
2010-03-02 20:37:49 -06:00
silver1ce f748ea34e3 changes in creature base stats storage
* speedup stats searching
  * no more default stat generation for each class-level pair, there is only one default stat
  * CreatureBaseStats does not contain level and class

--HG--
branch : trunk
2010-03-03 04:32:47 +02:00
silver1ce 9e63454b63 store unit's level in uint8 format
TODO: may be change db format too

--HG--
branch : trunk
2010-03-03 02:48:31 +02:00
silver1ce ab51061318 add creature expansion check
--HG--
branch : trunk
2010-03-03 03:29:03 +02:00
p0wer f4a4a6bfc2 Merge. ><
--HG--
branch : trunk
2010-03-02 19:45:32 -06:00
p0wer 2942a19592 Some SA fixes by gyullo.
Also added formating fix for BattleGroundSA::EventPlayerUsedGO.

--HG--
branch : trunk
2010-03-02 19:44:54 -06:00
Brian 74ccd57597 * Move some values out of the data blob in the characters table
* (honor, kills, title, currencies, watched faction, drunken-status, health and power)
* Original Author Hunuza - thank you
* Ported to Trinity by RammboNr5 - thank you
* Tested by Aokromes - thank you
* Closes Issue #911

--HG--
branch : trunk
2010-03-02 10:12:47 -07:00
Brian d3e09cb65f * merge
--HG--
branch : trunk
2010-03-02 10:00:40 -07:00
silver1ce dff5bdedac skip ai reaction at self relocation
i had to add it earlier

--HG--
branch : trunk
2010-03-03 02:02:38 +02:00
p0wer 0f4855d8f3 Fix possible crash in .gobject info.
--HG--
branch : trunk
2010-03-02 17:44:59 -06:00
p0wer fbe0f4ea2b Improve .gobject info to not use SQL query anymore. Thanks to silverice for suggesting.
--HG--
branch : trunk
2010-03-02 17:40:26 -06:00
Brian 29666451f3 * Add support for sending quest completion text
* Original patch by NoFantasy - thank you
* Ported to Trinity by seirgy - thank you
* Closes issue #873

--HG--
branch : trunk
2010-03-02 09:59:59 -07:00
teacher 70e77a796d Fixed import errors on recent sql update files...
Added forgotten updates to world.sql...
Added missing lines at the end of some sql files...
Better format by adding DELETE FROM before any INSERT INTO update...

--HG--
branch : trunk
2010-03-02 15:42:46 +01:00
p0wer 81f6779102 Add command similar to pinfo but for gameobjects.
Displays Entry, Type, DisplayId, and Name.
Created in response to issue #768.

--HG--
branch : trunk
2010-03-01 19:28:21 -06:00
_manuel_ 22d7ceaabb Implemented script for npcs 32369,32371,32372. By Malcrom.
For a full fix apply http://trinitydatabase.org/index.php?/topic/14699-fix-transitus-shield-invisible-bunny-positions-violet-stand/

--HG--
branch : trunk
2010-03-01 21:39:07 -03:00
p0wer 57f1b2524a Execute should only apply damage based on rage up to 30. Thanks 19Maxx83. Fixes issue #953.
--HG--
branch : trunk
2010-03-01 17:57:14 -06:00
_manuel_ 5448abd9f9 Implemented error message for go_tele_to_dalaran_crystal. By Malcrom.
--HG--
branch : trunk
2010-03-01 20:35:13 -03:00
_manuel_ 3bfcc197cf Fixed: Gothik Waves in 25m version should not be the same that 10m, used DBM and tested. By Gyullo.
--HG--
branch : trunk
2010-03-01 20:11:32 -03:00
_manuel_ a40dad1f11 Fixed Eye for an Eye by Gyullo.
--HG--
branch : trunk
2010-03-01 19:51:48 -03:00
_manuel_ 661a8be9a5 Implemented SCRIPT_COMMAND_ORIENTATION.
--HG--
branch : trunk
2010-03-01 19:40:05 -03:00
Rat 006390ffa0 *fix weapon enchants procing in feral forms, closes issue #23
--HG--
branch : trunk
2010-03-01 21:06:24 +01:00
Trazom62 80b531a413 Fix infinite loop.
Fixes issue #945.

--HG--
branch : trunk
2010-03-01 20:30:52 +01:00
XTZGZoReX 2383c5b79e * Fix SMSG_TRANSFER_ABORTED. Don't modify packet structures unless you actually verify them...
--HG--
branch : trunk
2010-02-28 19:08:40 +01:00
XTZGZoReX ac48523b14 * Fix *nix build. By reno.
--HG--
branch : trunk
2010-02-27 22:16:36 +01:00
p0wer 1ceda14d54 Change the conditional statement for Merciless Combat so it correctly applies extra damage when required. Fixes #860.
--HG--
branch : trunk
2010-02-28 14:46:15 -06:00
Trazom62 4c16bff8e6 Fix mana set to 0 when mob dies. Thanks Malcrom.
--HG--
branch : trunk
2010-02-28 21:34:31 +01:00
Trazom62 3ffeb5f5dd Fix initialization of UnitMovementFlag from InhabitType.
--HG--
branch : trunk
2010-02-28 20:30:20 +01:00
Trazom62 fe3fa59839 Fix Increases damage taken by %. Thanks moriquendu.
Fixes issue #929.

--HG--
branch : trunk
2010-02-28 20:27:08 +01:00
Trazom62 eeae1f4571 Fix crash in Prince Taldaram script.
Fixes issue #884.

--HG--
branch : trunk
2010-02-28 12:02:13 +01:00
Trazom62 6e52fc3f7f fix compile on linux.
--HG--
branch : trunk
2010-02-27 18:11:43 +01:00
silver1ce 6ed27c17a2 trying to fix comple on *nixes
--HG--
branch : trunk
2010-02-27 18:28:17 +02:00