Commit Graph

158 Commits

Author SHA1 Message Date
megamage
675cac9a6b *Remove log spams when ghoul is summoned.
--HG--
branch : trunk
2009-08-24 12:05:50 -05:00
megamage
bcc23fac92 *Fix a bug that dk's ghoul generates energy twice per tick.
--HG--
branch : trunk
2009-08-24 11:35:01 -05:00
megamage
5f1589d6d1 *Allow vehicles to regenerate energy.
--HG--
branch : trunk
2009-08-23 22:36:51 -05:00
megamage
7712d5e0bd *Let ghoul regenerate 20 energy per 2 seconds instead of 4 seconds (I think it should be the same as rogue)
--HG--
branch : trunk
2009-08-23 22:20: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
QAston
a60600b717 *Script for Ebon gargoyle - original patch by thenecromancer.
--HG--
branch : trunk
2009-08-14 15:30:47 +02:00
megamage
978242da3f *Try to fix a crash caused by single target auras. Thanks to QAston.
--HG--
branch : trunk
2009-08-11 18:26:04 -05:00
megamage
9403ff03e7 *Only use m_isWorldObject to check if an object is in grid or world.
--HG--
branch : trunk
2009-08-11 16:14:45 -05:00
QAston
1d96091d2a *Improvements in map managing.
--HG--
branch : trunk
2009-08-01 00:20:32 +02:00
QAston
1f53433c6c Backed out changeset "[8251] Store in some DB tables only data for first rank. Author: VladimirMangos" until support for different values for ranks and for custom ranks is added.
--HG--
branch : trunk
2009-07-31 13:21:01 +02:00
megamage
2bddcc4303 [8251] Store in some DB tables only data for first rank. Author: VladimirMangos
* Allow add to DB data only for first rank in table `mangos_spell_bonus_data` and `mangos_spell_proc_event`.
    * Copy data for other ranks for speedup use at loading for this data and data from `spell_proc_item_enchant`.

--HG--
branch : trunk
2009-07-31 10:21:57 +08:00
megamage
bf8c0933c9 [8221] Removed trailing whitespaces
With excluded dep/ - as usual.

    Signed-off-by: freghar <compmancz@gmail.com>

--HG--
branch : trunk
2009-07-30 10:19:03 +08:00
QAston
c15c25aca4 *Cleanups and Fixes in Mirror Image script.
--HG--
branch : trunk
2009-07-28 21:34:18 +02:00
QAston
70e6446118 *Add SUMMON_MASK_CONTROLABLE_GUARDIAN to regular pets.
--HG--
branch : trunk
2009-07-22 19:11:16 +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
megamage
208087ff6e [8182] Store and use Map* pointer in WorldObject instead map ids for speedup Author: Ambal
Also some code logic cleanups.
    Changes let make more cleanups in base map access and other places,
    but this chnages not inlcuded in patch.

*This patch may cause crash.

--HG--
branch : trunk
2009-07-16 11:49:00 +08:00
megamage
e1d93bd00f *Backup your DB!
[8098] Support uint32 spell ids in code. Author: VladimirMangos

    * Propertly work with uint32 spell ids in player action bar
    * Fix in same time bug with not save equipment set button with id==0
    * Merge misc field in character_action and playercreateinfo_action to action field as 3 byte
    * Propertly load uint32 spell ids from character_spell
    * Fixed types for some pet/creature related structure for spell id storing.

--HG--
branch : trunk
2009-07-01 18:07:20 -05:00
megamage
fe89fbfbdb [8057] Move code from Event AI to class Creature function for reuse in other scripting cases. Author: NoFantasy
--HG--
branch : trunk
2009-06-27 15:37:33 -05:00
Machiavelli
6a6add72f5 * Fix some typo's in LoadPetFromDB SQL, spotted by Drahy
--HG--
branch : trunk
2009-06-23 18:50:33 +02:00
QAston
ad91c6b1e2 [8052] Fixed typo in error log output. Author: The_Game_Master
[8049] Added energize effect after last heal tick for 33763 and ranks. Author: bobaz
[8053] At character talents reset using chat command also reset talents
for all character pets. Author: VladimirMangos

--HG--
branch : trunk
2009-06-23 13:05:15 +02:00
Machiavelli
a4dafbf8ec * More updating of iterator data types in loops
--HG--
branch : trunk
2009-06-18 18:29:28 +02:00
Machiavelli
3a309abfab * In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
* Other minor cleanups, Null pointer checks etc.

--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
QAston
30d0b2ed5f *Fix raise dead spell - original patch by Astellar, thanks for some help in conversion for Azrael
*Correctly apply spell cooldown for spells with cooldown starting after pet unsummon.

--HG--
branch : trunk
2009-06-18 14:17:11 +02:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage
2413836499 *Fix the client crash caused by enslave demon.
--HG--
branch : trunk
2009-06-09 16:29:23 -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
ebfb4c0558 [7971] Implement support exotic pets limtations related to hunter telent 53270. Author: VladimirMangos
Note: before this commit hunters can tame exotic pets like any other.
          After patch like not propertly contriolled pets will auto-dismiss at loading
          if talent not learned.

--HG--
branch : trunk
2009-06-06 20:31:23 -05:00
megamage
e3390806a9 [7948] Use SetFaction instead explcit field set, other cleanups. Author: NoFantasy
--HG--
branch : trunk
2009-06-03 19:29:55 -05:00
megamage
72cb88c19f * Revert partly "[7903] Load and save for pets only talents." Author: VladimirMangos
--HG--
branch : trunk
2009-06-02 17:47:54 -05:00
megamage
395667a7f3 *Fix the bug that hunter pet does not get correct stat bonus.
--HG--
branch : trunk
2009-06-02 10:34:32 -05:00
megamage
d0878ec414 *Fix the bug that shaman/druid/mage pets do not have scaled stats
--HG--
branch : trunk
2009-06-01 23:45:00 -05:00
megamage
4e31ec051d [7932] Store in DB only spell part of pet action bar, set other to default state (reaction saved). Author: VladimirMangos
--HG--
branch : trunk
2009-06-01 21:49:42 -05:00
megamage
f92e8315cf [7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
      I64FMTD renamed to UI64FMTD for more clear name.
    * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
      Please always use UI64LIT(0x00001) instead less portable 0x00001LL

--HG--
branch : trunk
2009-05-31 16:15:12 -05:00
megamage
d3e1e1eae6 *Fix a bug that pet does not autocast after summoned or log in.
--HG--
branch : trunk
2009-05-30 00:05:44 -05:00
megamage
1288761fb7 [7905] Implement ACTION_T_SET_SHEATH for creature event ai make possibility set ranged fire state. Author: VladimirMangos
Also related cleanup code in field cases and player Player::SetSheath.

--HG--
branch : trunk
2009-05-28 18:43:57 -05:00
megamage
cfa2e223c0 [7903] Load and save for pets only talents. Not store unused (in fact) free talent point amount. Author: VladimirMangos
* Other pet spell types auto-learned at level setup/load.
    * Code will cleanup pet_spell table from non-talents spell if detect any at load.
    * Free talents points recalculated at loading and levelup so store its in DB useless.

    Note: bug with not highlighting learned pet talents (except first line) until learn one more talent not fixed.

--HG--
branch : trunk
2009-05-28 18:22:54 -05:00
megamage
514fc49c3c [7901] Refactoting pet action bar related code. Fixed some related bugs. Author: VladimirMangos
* Correctly update action bar at loading and other cases when listed unlearned/not existed spells
    * Avoid send data by PetSpellInitialize() many times while pet loading

--HG--
branch : trunk
2009-05-27 17:02:39 -05:00
megamage
d971d0121f *Do not consider possessed creatures as pet. Also fix the bug that possessed creature does not display spells.
--HG--
branch : trunk
2009-05-25 22:52:08 -05:00
megamage
09b386a786 [7886] Drop use table petcreateinfo_spell
This is first commit in chain for remove oudated and not used pet functionality.

    * Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets)
    * Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures)
    * Fixed bug with not removing from action bar spell icon for not ranked unlearned spells.

    Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template.

[7887] Drop pet spell teaching code, including field in character_pet.

Author: VladimirMangos

--HG--
branch : trunk
2009-05-24 12:16:12 -05:00
megamage
2a2eff190c *Fix some bugs about pet spells: such as cannot cast/cannot autocast.
--HG--
branch : trunk
2009-05-19 01:23:52 -05:00
megamage
f09f5c61d4 [7840] Fixed unexpected rounding in pet size scale calculation. Author: Naicisum
--HG--
branch : trunk
2009-05-17 10:58:31 -05:00
megamage
3569f949d7 [7839] Rafactoring player targeting code in chat command and related cleanups/improvments.
* New extractOptFirstArg function for easy get 2 args in case option playe name as first arg.
    * New extractPlayerTarget function for get player pointer/guid/name for online/offline player base at provided name
      or if not provided by current seelction with error cases processing.
    * Property apply mute/unmute in case use different character name from loggined currently for account.
    * .reset commands can be used from console now
    * .repairitems comamnd can be used from console now but only to online player.

Author: VladimirMangos

--HG--
branch : trunk
2009-05-17 10:57:55 -05:00
megamage
d0a50c9d55 *Fix the sql error when saving pet auras.
--HG--
branch : trunk
2009-05-17 09:43:57 -05:00
megamage
9b4d3bf0af [7835] Store structures (with size = uint32) insteed pointer to structure in PetSpellMap. Author: VladimirMangos
--HG--
branch : trunk
2009-05-15 16:46:02 -05:00
megamage
a442a9b914 [7831] Prevent have hunter pet with level greater player levels at level changes. Propertly set hunter pet xp values at level update. Author: VladimirMangos
--HG--
branch : trunk
2009-05-15 13:44:49 -05:00
megamage
d72855e25f [7794] Add DK pet type support for proper show it in client Pet tab. Author: Astellar
--HG--
branch : trunk
2009-05-08 18:43:06 -05:00
megamage
80bec6788c *Try to fix some bugs about pet spells and talents.
--HG--
branch : trunk
2009-05-08 17:15:19 -05:00
megamage
5e2bec88dc [7785] Allow regenerate energy for pets if this current power type. Author: Astellar
--HG--
branch : trunk
2009-05-06 16:47:06 -05:00
megamage
fa1dcd16cf *Update summon system.
--HG--
branch : trunk
2009-05-06 13:34:11 -05:00
megamage
4182821bab *Remove an useless error log.
--HG--
branch : trunk
2009-05-04 12:13:10 -05:00