Commit Graph

77 Commits

Author SHA1 Message Date
maximius
9710187b1a *Better fix to dead player with health exploit..
--HG--
branch : trunk
2009-09-01 10:31:35 -07:00
maximius
55981782f0 *Prevent players from casting spells while getDeathState() == DEAD (this blocks an exploit where players can skip all mobs/doors/etc in an instance and ressurect themselves at boss)
--HG--
branch : trunk
2009-09-01 07:06:42 -07:00
QAston
dc5c054ab9 *Some improvements in Mirrors Image visual - by thenecromancer.
--HG--
branch : trunk
2009-08-29 02:28:02 +02:00
megamage
56bdb0fc6b *Fix a crash caused by possess pet. Thanks to nanouniko
--HG--
branch : trunk
2009-08-27 11:32:46 -05:00
megamage
71860b5024 *A temp fix for the crash caused by creature 28782
--HG--
branch : trunk
2009-08-27 11:08:55 -05:00
megamage
7cb2864d82 *Fix a crash caused by spellclick enter vehicle. Thanks to nanouniko
--HG--
branch : trunk
2009-08-26 23:40:28 -05:00
megamage
785577e170 [8403] Fixed cast spell opcode parsing for some cases with additional data. Author: VladimirMangos
--HG--
branch : trunk
2009-08-24 19:33:34 -05:00
megamage
1ee90e1022 *Update vehicle system. Make vehicle a seperate class from creature.
--HG--
branch : trunk
2009-08-23 22:09:43 -05:00
megamage
dee4a9fd87 *Update flame leviathan script.
--HG--
branch : trunk
2009-08-23 01:08:09 -05:00
Kudlaty
007d3215d4 Revert part of last patch witch should be not pushed. Sorry
--HG--
branch : trunk
2009-08-20 20:16:49 +02:00
Kudlaty
7ccc15ec48 Add script for quest 12864. Script by manuel
--HG--
branch : trunk
2009-08-20 20:09:13 +02:00
megamage
051b383254 [8383] Implement WorldSession::HandleCancelChanneling. Author: VladimirMangos
--HG--
branch : trunk
2009-08-19 16:55:35 -05:00
megamage
edc05f2c19 [8382] Implement ByteArray functions for skip read of fields not needed for server in received packets. Author: VladimirMangos
* Use this fucntions in some case.
    * Change some packets to form: read fields first check later for better control recieved packets structure.
    * Fix CMSG_STAND_STATE_CHANGE packet structure to more correct.

--HG--
branch : trunk
2009-08-19 16:54:52 -05:00
megamage
012d6fa865 [8381] Some refactoring work in Unit::m_currentSpells code. Author: VladimirMangos
* Restrict access, use enum args, move some repeated code parts to function.
    * Make m_selfContainer set only part of Unit::SetCurrentCastedSpell

--HG--
branch : trunk
2009-08-19 16:52:51 -05:00
megamage
e954904e6d [8378] Use exceptions instead of explicit size checking for each packet Author: arrai
CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd
    could crash due to the asserts in ByteBuffer.h. That was exploitable by
    malicious players.
    Furthermore, there were duplicate checks: Additionally to
    CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye
    on not exceeding the packet boundaries - just to crash the server for
    sure in such a case.
    To prevent memory leaks or other undesirable states, please read in
    every handler all variables _before_ doing any concrete handling.

--HG--
branch : trunk
2009-08-19 16:26:22 -05:00
QAston
41c12d173b *Add spell_bonus_data for lightwell - by Elron
*Add aura_required, aura_forbidden, user_type columns to npc_spellclick_spells table for additional requirement checks
*Remove workarounds from lightwell code and use new npc_spellclick_spells fields instead.

--HG--
branch : trunk
2009-08-17 02:53:39 +02:00
QAston
2ff21d4cef *Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.

--HG--
branch : trunk
2009-07-22 17:10:30 +02:00
Destalker
ff7a90db5f *Allow Illumination to proc on Holy Shock.
--HG--
branch : trunk
2009-07-11 21:32:41 +02:00
QAston
4dc5242a69 *Fix Desecration.
*Correct a typo which made some of charged auras to be not dropped.

--HG--
branch : trunk
2009-07-11 13:03:06 +02:00
megamage
00f4a31b73 [8016] Work at npc click table data use. Author: VladimirMangos
* New fields in `npc_spellclick_spells` for allow set npc spell click mode from quest to infinity
      or to another quest, or from reward quest.
    * Not expect (and forbid set UNIT_NPC_FLAG_SPELLCLICK in DB and set it at `npc_spellclick_spells` loading.
    * Apply some speedups for creature checks affected by spel click state

*Also add target position of 51852. By Roland

--HG--
branch : trunk
2009-06-15 23:07:43 -05:00
megamage
375641398a [7983] Make static Spell::SendCastResult accessable from script DLL. Author: VladimirMangos
--HG--
branch : trunk
2009-06-10 14:37:30 -05:00
QAston
507b9fb051 *Fix Heart of the Pheonix
*Fix autoshoot rotation with steady shot.
*Make Incanter's Absorption not interrupt other casts.

--HG--
branch : trunk
2009-06-09 19:33:38 +02:00
megamage
4e130dcdfd [7980] Implement item use target requirements store and check (new table item_required_target). Author: NoFantasy
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

    * Also implement this table reload
    * Static Spell::SendCastResult function for call not from spell code.
      Can be also used in scripts where need send explicitly spell cast error to client.

--HG--
branch : trunk
2009-06-08 17:25:02 -05:00
megamage
5ed5513ca8 Mangos [7911]. Author: tomrus88
Very big patch. May cause bugs.

--HG--
branch : trunk
2009-05-31 15:56:51 -05:00
Kudlaty
3bd9858417 Add a column to npc_spellclick_spells table to check if quest is completed/rewarded or incompleted
1: completed or rewarded; 3: incompleted; default 3

--HG--
branch : trunk
2009-05-22 17:43:14 +02:00
megamage
833ceee7c5 *Fix a bug that player cannot remove buff which is not casted by self.
--HG--
branch : trunk
2009-05-18 23:07:36 -05:00
megamage
e69d2cbed9 [7776] Completed implementation of CMSG_SPELLCLICK Author: arrai
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
    npc_spellclick_spells, otherwise you won't be able to use them

--HG--
branch : trunk
2009-05-05 16:56:15 -05:00
megamage
48dab8af91 *Merge.
--HG--
branch : trunk
2009-04-30 16:31:05 -05:00
megamage
a9f6f4481d *Do not allow client to interrupt instant spells. By thenecromancer
--HG--
branch : trunk
2009-04-30 09:59:16 -05:00
megamage
71841e5f43 *Fix a bug that mind control cannot be cancelled.
--HG--
branch : trunk
2009-04-28 00:06:48 -05:00
megamage
fc7e1db9fb [7690] Move GetCreature/GetGameobject to class Map. Author: VladimirMangos
* This let get objects at map without reference to player or another object.
    * Simplify future implementation for per-map storage for like objects

--HG--
branch : trunk
2009-04-20 20:28:19 -05:00
megamage
df35e1ad2b [7663] Cleanup spell interrupt code. Author: VladimirMangos
--HG--
branch : trunk
2009-04-13 17:36:37 -05:00
megamage
74d553bc4c *Merge.
--HG--
branch : trunk
2009-04-08 12:28:41 -05:00
megamage
e00106db55 *Always delink spell and container when spell is cancelled.
--HG--
branch : trunk
2009-04-05 17:31:12 -05:00
QAston
20c02ef760 *Update of aura system.
--HG--
branch : trunk
2009-04-06 13:31:14 +02:00
megamage
b922da4db1 [7611] Prevent casting owner spell/use item or gameobject by mind controlled player or creature. Author: VladimirMangos
This also prevent some crashes in like wrong case.
[7610] skipped.

--HG--
branch : trunk
2009-04-03 16:42:19 -06:00
megamage
df479707e2 [7608] Implement ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT. Author: VladimirMangos
--HG--
branch : trunk
2009-04-03 16:37:06 -06:00
megamage
ff83e4a9b1 *Fix some bugs of pet.
--HG--
branch : trunk
2009-03-27 22:47:28 -06:00
megamage
bc2f2bc56a [7552] Move client version dependend DBC code to src/game. Author: VladimirMangos
--HG--
branch : trunk
2009-03-27 09:58:20 -06:00
megamage
941e5b9dbd [7532] Avoid warnings at use size_t with printf fromat strings. Author: VladimirMangos
--HG--
branch : trunk
2009-03-24 17:38:14 -06:00
megamage
40598d6647 *Do not proc anything for aura remove type = delete.
*Use delete type for duel complete.

--HG--
branch : trunk
2009-03-24 17:05:05 -06:00
megamage
a8105dcff6 *Do not proc anything when aura is removed by cancel.
*Remove aura by cancel when duel complete. This fix a crash.

--HG--
branch : trunk
2009-03-23 16:34:30 -06:00
megamage
328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage
61b999fd3a [7360] Use defines instead harcoded item prototype array sizes. Author: VladimirMangos
--HG--
branch : trunk
2009-03-02 16:47:20 -06:00
megamage
31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin
14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage
6aee5fcbe7 *Merge.
--HG--
branch : trunk
2009-02-12 17:09:15 -06:00
Paradox
d230302b16 Replace tabs with spaces in more files.
--HG--
branch : trunk
2009-02-09 08:16:34 -05: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