Commit graph

656 commits

Author SHA1 Message Date
Feanordev
01e4f25888 [11143] Spells with unit-type and destination flag should not be LOS-dependant
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:53:42 +02:00
Schmoozerd
f4e8c3d679 [11141] Add use of SpellMod for melee spells as needed, for exaplme, for some talents
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:14:39 +02:00
VladimirMangos
8069cf09d2 [11113] Fixed spell effects with target pair (18, need_dest_target_set)
Like spells expected always caster object (unit/gameobject coordinates set as dest point).
2011-02-07 03:47:40 +03:00
Schmoozerd
8e68d1bcaf [11105] Melee attacks distance
Inspired by patch provided by Feanordev.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-03 01:25:32 +03:00
VladimirMangos
44cb8b6dd4 [11102] Provide for mount helper function parent spell data.
This let skip for triggered spell redundent (like cast time) info.
2011-02-02 20:04:40 +03:00
VladimirMangos
cd3d815df6 [11101] Skip casting time for casts triggered by parent aura/spell.
Possible not need another (old) checks except this.
2011-02-02 19:58:19 +03:00
Schmoozerd
343edf3c6c [11093] Limit maxtargets for spell 68950
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-01 14:34:57 +01:00
Lynx3d
dcec49055d [11085] Also disable related cast check when vmap.enableIndoorCheck disabled.
Note: spells are also blocked at client side, so they can only be used with .cast command
2011-01-31 01:35:14 +01:00
zergtmn
26dc35f356 [11082] Correct meaning of two threat/aggro related spell attributes
- SPELL_ATTR_EX_NO_INITIAL_AGGRO renamed to SPELL_ATTR_EX_NO_THREAT
- SPELL_ATTR_EX3_UNK17 renamed to SPELL_ATTR_EX3_NO_INITIAL_AGGRO
- Remove custom spell modifier from talent 30675 and ranks handler
2011-01-29 21:57:40 +05:00
NoFantasy
84dd2e4393 [11076] Override radius for TARGET_DYNAMIC_OBJECT_* (47-50)
When effect radius index is 0, spell max range is useless and we need to handle these as 0.0 radius.
This will fix summoning spells where object is summoned too far away from the expected.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-28 19:00:10 +01:00
schmoozerd
4643d9020e [11056] Limit max targets for spell 802/804
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-21 10:53:28 +01:00
Neo2003
01b9ae6c58 [11029] Rewrite comment line from engrish.
Also thanks to Schmoozerd for pointin to other fixed typos.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 19:00:51 +03:00
Lynx3d
9baa31bc04 [11028] Implement proper bonus threat distribution for spells not (only) affecting the primary target. 2011-01-17 16:49:41 +01:00
VladimirMangos
5099b9133c [11026] Implement damage reduction part of spell 50720 2011-01-17 18:05:27 +03:00
x3n
d35be7f4c1 [11023] Implement support for threat multiplier and AP based threat bonus for spells.
* Higher ranks are now automatically filled when not listed in spell_threat
* Added some loading checks to detect inconsistent data

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-01-17 12:55:24 +01:00
pasdVn
f9a6513d38 [11013] Implemented spell 34026 and bonus to it from talent 35029 and ranks
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-15 21:17:13 +03:00
NoFantasy
75846d28eb [11003] Add comment to unknown byte value in spell go packet.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-13 11:40:59 +01:00
NoFantasy
7ab08fd6a4 [10992] Add CastSpell part of dummy effect for spell 23138
Also limit max targets.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-09 19:41:29 +01:00
Daggy
9f8cfb77d4 [10967] Add dummy effect of spell 38194 and limit it's maxTargets
Correct order of spellfamily case.
Note: triggered spell 38203 needs target map fill

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-05 10:24:23 +01:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
Ambal
b11820593c [10924] Send time diff between Update() calls for object - should help with mob respawn on inactive grids etc. Based on patches by VladimirMangos and cipherCOM. All issues from previous patches should be finally fixed now.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-12-27 22:27:20 +02:00
VladimirMangos
1b4477164c [10920] Prevent server freeze at strnage radisu used by item 34124 spell cast 2010-12-24 21:21:19 +03:00
VladimirMangos
d1b0e5b40f [10915] Use HasFlag function for check flags instead raw access. 2010-12-24 05:38:48 +03:00
VladimirMangos
a84d67a389 [10908] Imporve detection need use reagents by triggered spell.
Now regagent used if main spell (if infor about provided to triggered cast)
not have regent data.

This fix reagetn use for spell 43723. But maybe need another fixes for proper animation.
2010-12-23 00:58:21 +03:00
zergtmn
2f4e7a9377 [10901] Allow vehicles to have gossip menu
In addition rename IsGameobject -> IsGameObject.
2010-12-21 15:14:52 +05:00
NoFantasy
a0e0630c81 [10856] Correct two whitespace errors
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-11 10:37:53 +01:00
NoFantasy
7751579303 [10855] Add TARGET_AREAEFFECT_GO_AROUND_DEST(52) (renamed from TARGET_AREAEFFECT_CUSTOM_2)
Target selects all gameobject around destination, limited by adding spell with a corresponding gameobject entry in database table spell_script_target.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-11 10:34:46 +01:00
NoFantasy
1b4209699f [10842] Allow fill DB table spell_script_target for TARGET_AREAEFFECT_INSTANT(7)
Without any database entries for spell, spell will work like before.
Valid targets filled to database can only be creature type (corpse or alive).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-12-08 16:17:50 +01:00
michalpolko
08b32d7d32 [10841] Implement charges counting for magnet target auras.
Also implement skip spell effects redirecting if magnet target can't be
targeted by this spell effect base at spell effect target data requirements.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-12-08 10:42:19 +03:00
VladimirMangos
4c02094737 [10834] Cleanup shapeshift form code. 2010-12-07 14:41:59 +03:00
VladimirMangos
0a964e43a9 [10812] Use ObjectGuid for corpse owner guid.
Still exist 9 GUID_LOPART uses in code.
2010-12-02 07:28:17 +03:00
VladimirMangos
ce7b98c45e [10799] Add GetGuidStr() short call for GetObjectGuid().GetString() and use it. 2010-12-01 09:56:13 +03:00
Lynx3d
796cf40f87 [10779] Allow ITEM_ENCHANTMENT_TYPE_COMBAT_SPELL to proc on special attacks too. 2010-11-23 15:38:56 +01:00
insider42
a34deecfc0 [10764] Implement talent 44543 and ranks charges work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix IGNORE_UNIT_TARGET_NON_FROZEN in part allow casting spell that required frozen target.
2010-11-21 05:32:17 +03:00
insider42
f7b4b88e02 [10762] Implement SPELL_AURA_IGNORE_UNIT_STATE (252).
Original patch provided by Wojta

Note: From patch excluded talent 44543 and ranks stacking code.
      It look like need another implemention different from suggested,
      or at least more research.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

In patch added enum IgnoreUnitState and related checks now more cheating protected.
2010-11-21 01:42:25 +03:00
VladimirMangos
2601022b9f [10751] Use objectguids in item code.
Also
* Fixed unexpected container updated state after inventory load
* Make .debug getitemstate command more friendly by args.
2010-11-20 01:59:48 +03:00
VladimirMangos
12b80fec68 [10747] Some other aura caster object guid use cases. 2010-11-19 18:36:43 +03:00
NoFantasy
bd48d3cdc9 [10731] Remove redundant isAlive-check, thanks LordJZ for notice
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 19:09:51 +01:00
NoFantasy
cfbfae7f40 [10730] Check if Pet's target is a valid target (isTargetableForAttack)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-17 18:26:01 +01:00
Ambal
f67d89f109 [10727] Map system re-engineered. Special thanks to Blueboy for tests.
Signed-off-by: Ambal <pogrebniak@gala.net>
2010-11-16 21:08:28 +02:00
NoFantasy
8a1c5bd800 [10724] Fix TARGET_AREAEFFECT_CUSTOM, need to obey type when DB target entry exist
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-15 18:04:59 +01:00
tomrus88
76dfdd336f Backports from 400 branch. 2010-11-15 18:01:45 +03:00
NoFantasy
bf774f49ce [10722] Fill target map for TARGET_RANDOM_NEARBY_DEST(b) cases.
Corrects ~35 spells, where most has summon effects.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-14 17:35:35 +01:00
zergtmn
6c1dd50511 [10709] Prevent wrongly use transport guid as unittarget in spell targets
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-09 06:13:10 +03:00
kid 10
b435aa350f [10701] Correct check percent spell costs in AI::CanCast
Also use uint32 for spell cost fields/results

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-08 22:38:35 +03:00
VladimirMangos
9508001213 [10696] Avoid selection despawned creatures as spell autoselected targets.
Original patch provided by virusav.
2010-11-08 03:09:01 +03:00
VladimirMangos
10d3d3ce24 [10692] Fixed some GCC warnings and code errors.
Thanks to freghar for provide cleaned list of warning messages.
2010-11-07 21:30:55 +03:00
VladimirMangos
2b98f699b7 [10690] Fixed *nix build problem after recent commits. 2010-11-07 03:04:35 +03:00
VladimirMangos
bffc07e4bc [10689] Restore some item checkes for temporary loot case. 2010-11-07 02:20:10 +03:00
SilverIce
225b4db1ca [10681] Added new Cell::Visit* functions to visit grids with center in (x,y) coords
* This fixes possible problems with Spell::FillAreaTargets(center of search should be (x,y) position, not spell caster's position)
* Cleanup Cell class, removed old and unused code
2010-11-04 21:45:49 +02:00