VladimirMangos
c6dee6c2d6
[11375] Move holder-wide code from effect loop in immune cast checks.
2011-04-17 06:37:49 +04:00
zergtmn
85e7bbaad5
[11369] Restore visuals for infinitely channeled spells
...
Thx Schmoozerd for pointing problem and testing.
2011-04-17 00:02:03 +06:00
Ambal
5a22b8c6dd
[11368] small code refactoring: use container typedefs instead of direct container declarations to simplify code.
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-16 13:42:40 +03:00
michalpolko
4b7dffcc09
[11367] Check for SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE when checking school immunity
2011-04-16 11:49:26 +03:00
rsa
cd32dd9bfc
[11330] Use ObjectGuid to store Totem guids instead of uint64 and fix related rare crash.
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-04-11 22:45:32 +03:00
VladimirMangos
633b84b235
[11324] TARGET_RANDOM_NEARBY_DEST expected targeting any random target point in radius.
2011-04-07 23:01:21 +04:00
zergtmn
0dfcbf8051
[11322] Get rid of redundant CalculateSpellDuration calls, calculate once in Spell::prepare
...
Also fix despawn time calculation of dynamic objects.
2011-04-07 13:32:29 +06:00
zergtmn
4687fa8cb4
[11299] Handle aura durations in SpellAuraHolder
...
- Unit::CalculateSpellDuration split into two functions
- CalculateSpellDuration taking into account combo points and caster-side spell mods
- Unit::CalculateAuraDuration taking into account target-side spell mods
- Diminishing is now applied before duration reduction mods
- Implement saving per-effect periodic timers to DB (required for auras affected by haste)
2011-03-30 23:29:01 +06:00
zergtmn
ee5b59b7e0
[11293] Cleanups in spell target lists
2011-03-28 01:14:36 +06:00
VladimirMangos
989d229968
[11288] Check IsPositiveEffect in IsPositiveSpell only for existed effects.
...
Thanks to NoFantasy for problem research.
Also make IsPositiveEffect use SpellEntry* arg instead spell id.
2011-03-26 03:10:26 +03:00
VladimirMangos
678cfcea78
[11276] In dest. point slection must used in world casting object (not owner of cast affects)
2011-03-22 03:25:39 +03:00
VladimirMangos
b588ea9db3
[11260] Add wrapper for creature vistual item set.
2011-03-16 20:21:45 +03:00
NoFantasy
13776fa1e4
[11245] Clarify and provide more details for errors related to table spell_script_target
...
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-14 10:15:47 +01:00
VladimirMangos
8f3d97d955
[11219] Allow work SPELL_EFFECT_PERSISTENT_AREA_AURA with 0/18 only target modes
2011-03-05 23:00:06 +03:00
VladimirMangos
06fe777f82
[11215] Replace direct code use in .npc tame by spell cast.
...
Only work different from old way: target creature despawned.
So if this not expected use .respawn to it in gm mode or area respawn.
Code simplification suggested originally by rsa.
2011-03-03 21:33:47 +03:00
Lynx3d
44fd108745
[11203] Implement creating scrolls when enchanting vellum.
...
Thanks to Lightguard and timmons for original contribution.
2011-02-24 01:23:59 +01:00
VladimirMangos
f6affaf406
[11154] Revert "[11143] Spells with unit-type and destination flag should not be LOS-dependant"
...
This reverts commit 2e57df9f71330e278dbdf98b3f43d1d7bd5ec8d4.
* For original spells referecned in commit title:
Posible instead LoS check it must use outdoor check instaed ignore any LoS like checks.
* Main reason for revert second part check that in _addition_ to referecned spell let ~1200 spells ignore los
some from that have description ponting to need los check for its
2011-02-12 22:36:00 +03:00
VladimirMangos
709dd6fed8
[11153] Apply at least same checks at used at hit for miss aggro.
...
* Miss cases must have not less stricted checkd for combat start for comparison with normal hit.
* Also cleanup code
2011-02-12 22:14:43 +03:00
VladimirMangos
241726bf81
[11152] Clarify check code for SPELL_ATTR_EX5_USABLE_WHILE_STUNNED cast allowed
2011-02-12 21:22:52 +03:00
Feanordev
6bdbfc52d4
[11145] Creatures should get into combat if spell/attack is missed or resisted
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 16:17:59 +02:00
darkstalker
3d4caa275b
[11144] Prevents abilities that are 'usable while stunned' being usable while in non-stun effects. The usability while stunned is restricted only to stun auras with mechanic stun
...
Signed-off-by: Ambal <pogrebniak@gala.net>
2011-02-12 15:59:14 +02:00
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