Commit Graph

75 Commits

Author SHA1 Message Date
megamage
6976043e22 [8126] Improvemets in player/pet/charter name checks. Author: VladimirMangos
* Implement new config options for minimal player/pet/charter name length (2 by default)
    * Better error reporting at problems in names.
    * Add check from max pet/charter name length (same as for player names at client side)

--HG--
branch : trunk
2009-07-10 08:25:33 +08:00
megamage
4a8a89e1db [8103] More wide use IsInWorld checks and delayed at teleport operations. Author: Ambal
* IsInWorld used to prevent return unexpected not in world objects.
    * Delayed operations need to process its in world state.

--HG--
branch : trunk
2009-07-01 18:36:03 -05: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
QAston
8609527066 *Fix the issue of water elemental GCD preventing freeze to be casted - by Larva
*Correct a typo in prev commit.

--HG--
branch : trunk
2009-06-29 20:50:38 +02:00
QAston
f2ec641e42 [8056] Move SMSG_CLEAR_COOLDOWN into function and use it. Other cleanups. Author:XTZGZoReX
[8060] Store spell_pet_auras for auraeffects instead of by whole aura Author:hunuza.

--HG--
branch : trunk
2009-06-23 14:05:37 +02:00
Machiavelli
a4dafbf8ec * More updating of iterator data types in loops
--HG--
branch : trunk
2009-06-18 18:29:28 +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
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
65881812aa *Allow water elemental to cast freeze while casting water bolt.
--HG--
branch : trunk
2009-06-03 23:23:58 -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
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
00f50798d3 *Merge.
--HG--
branch : trunk
2009-05-25 12:51:14 -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
raczman
b0a48f60c9 Added new config option: vmap.petLOS
Enabling it makes pets do LOS check before attacking its target.

--HG--
branch : trunk
2009-05-21 23:17:52 +02:00
megamage
3b14179f65 *Allow dismiss possessed units.
--HG--
branch : trunk
2009-05-09 21:59:01 -05:00
megamage
2cdea49d81 *Fix a bug that minipet cannot be dismissed.
--HG--
branch : trunk
2009-05-06 10:13:33 -05:00
megamage
9f0f239e60 *Merge.
*Also fix build in VC7 and VC8.

--HG--
branch : trunk
2009-05-02 13:30:55 -05:00
megamage
f303ee08c5 *Update spell selection.
--HG--
branch : trunk
2009-05-02 11:28:11 -05:00
megamage
8a57a94eca *Merge.
--HG--
branch : trunk
2009-04-30 23:38:21 -05:00
megamage
d44d827200 *Explicitly implement spell target 28 and 29.
--HG--
branch : trunk
2009-04-30 22:04:15 -05:00
megamage
48dab8af91 *Merge.
--HG--
branch : trunk
2009-04-30 16:31:05 -05:00
megamage
efd58033ea *Use canattack to check if canattack in pethandler and combathandler
--HG--
branch : trunk
2009-04-30 09:58:34 -05:00
megamage
59e79dfef0 *let petattack command use provided guid instead of player selection. By thenecromancer
--HG--
branch : trunk
2009-04-29 18:04:56 -05:00
megamage
295b634ca6 [7731] Some code cleanups, warrning fixes. Author: VladimirMangos
--HG--
branch : trunk
2009-04-29 00:31:03 -05:00
megamage
de11b9e901 [7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
megamage
09af28301e [7716] Fixed some typos and possible crashes. Author: AlexDereka
--HG--
branch : trunk
2009-04-27 18:42:35 -05:00
megamage
34f9778296 *Add some checks during object deconstruction.
--HG--
branch : trunk
2009-04-03 16:28:15 -06:00
megamage
23f643b484 *Fix a crash when player toggle autocast for guardians.
--HG--
branch : trunk
2009-03-28 11:56:45 -06:00
megamage
ff83e4a9b1 *Fix some bugs of pet.
--HG--
branch : trunk
2009-03-27 22:47:28 -06:00
megamage
ee332629b6 *Do not allow toggle unautocastable spells for pet.
--HG--
branch : trunk
2009-03-21 18:05:43 -06:00
megamage
de849cc508 Small code cleanup and partial merge with dev branch Author: tomrus88
--HG--
branch : trunk
2009-03-21 14:53:38 -06:00
megamage
c1a3f51f04 *Do not allow pvp in dk start zone.
*Improve petsetaction code.

--HG--
branch : trunk
2009-03-21 13:42:09 -06:00
megamage
d0501ab3a1 *A temp fix for the bug that dismiss pets cause crash.
--HG--
branch : trunk
2009-03-21 12:16:14 -06:00
megamage
ab13b3ac04 *Fix a crash when toggle autocast for non-pet guardians.
*Allow control multiple guardians using one action bar (not fully implemented)

--HG--
branch : trunk
2009-03-21 11:15:55 -06:00
megamage
a54957ba41 *Allow players to control guardians/charms (not only pets).
--HG--
branch : trunk
2009-03-21 10:17:24 -06:00
megamage
8f627853df *More work on summon system.
--HG--
branch : trunk
2009-03-20 14:01:46 -06:00
megamage
3eba06e4ad *Use SpellCastResult and finaly fix SPELL_CAST_OK value (255 custom value now). By VladimirMangos.
--HG--
branch : trunk
2009-03-16 12:00:14 -06:00
megamage
a5882ee84a *Merge.
*"Fix Glowing Blood" is not merged. Outdated patch?

--HG--
branch : trunk
2009-03-13 18:48:53 -06:00
megamage
146b2560aa *Call stopmoving in moveidle.
--HG--
branch : trunk
2009-03-13 14:42:57 -06:00
megamage
16ee4a46c2 *Merge.
--HG--
branch : trunk
2009-03-12 14:22:59 -06:00
megamage
1fbfc6da64 *Assign possessed AI and pet AI to charmed creatures.
--HG--
branch : trunk
2009-03-12 14:15:44 -06:00
megamage
3d3656297f [7424] Codestyle: removed not needed \n in log output. Author: balrok
--HG--
branch : trunk
2009-03-09 17:56:51 -06:00
megamage
328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage
814c6c2c39 *Merge.
--HG--
branch : trunk
2009-03-07 10:19:07 -06:00
megamage
6dc06ab53b *Fix a bug that possessed creature cannot melee.
--HG--
branch : trunk
2009-03-07 00:53:30 -06:00
megamage
7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
megamage
8787c00ca3 *Disable charmed/possessed creature AI.
*Use general react states to replace charminfo react states.

--HG--
branch : trunk
2009-03-05 18:48:56 -06:00
panaut0lordv
966b6a4a8d Fix build
--HG--
branch : trunk
2009-02-18 22:39:00 +01: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