Commit graph

764 commits

Author SHA1 Message Date
NoFantasy
b4a22a6879 [11404] Revert [11403] Adjust dummy aura of spell 51329.
Place spell where it belongs instead, along with other spells doing the same. Spell will add/remove the correct flags this time.
git blame: Hasty research, lack of coffee, broken brain

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-28 12:14:52 +02:00
NoFantasy
4ca4118d5a [11403] Adjust dummy aura of spell 51329, apply/remove only expected flags.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-28 11:45:35 +02:00
TOM_RUS
730a907252 Use enum InventoryResult as return type for few functions. 2011-04-24 02:48:35 +04:00
NoFantasy
c4f2b30205 [11387] Add dummy and script effect of spell 45958 and dummy aura of spell 45963
Thanks dpedroia15 for parts of 45958.
Note: spell 45958 may be processed further with DB table spell_scripts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-20 23:41:00 +02:00
zergtmn
2835aa5f20 [11385] Add support for static vehicle spawns
Signed-off-by: zergtmn <zerg@myisp.com>
2011-04-20 23:23:47 +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
breakwater
b9240d04e3 [11360] Reapply persistent aura at return to affected range.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-04-15 17:37:14 +04:00
NoFantasy
d75fd850ac [11334] Add dummy aura effect of spell 50141
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-12 01:29:17 +02:00
NoFantasy
91b56d2940 [11307] Add dummy aura effect of spell 6606
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-04-03 14:16:12 +02: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
NoFantasy
23af82081b [11290] Add dummy aura effect of spell 62109
Also add a smaller hack to have access to m_caster later (see code comments)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-26 10:53:40 +01:00
NoFantasy
40d87bfabf [11289] Partially revert [11287] and try to do it properly this time.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-26 08:05:07 +01: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
NoFantasy
dae28ae93a [11287] Add dummy effect of spell 62105 and dummy aura effect of 62248
Note: spell 62105 are still considered to be negative, despite explicit exception added in IsPositiveEffect and will unexpectedly put caster in combat.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-26 00:16:09 +01:00
zergtmn
0bc4bc1d75 [11282] Use uint32 datatype for aura charges and stacks
* Some spells have StackAmount > 255, for example 22735, 54314
* In SMSG_AURA_UPDATE maximum stack amount is limited by 255
* Move duplicate code into SpellAuraHolder::BuildUpdatePacket function
* Cleanup some weird type casts in _LoadAuras
2011-03-25 14:40:09 +05:00
zergtmn
098a561529 [11280] Drop obsolete code
Debuff from talent 22959 is no longer stackable after 3.3.
2011-03-24 22:15:43 +05:00
NoFantasy
681159656b [11279] Remove aura 53031 at 53039 aura removal.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-24 08:28:12 +01:00
VladimirMangos
b588ea9db3 [11260] Add wrapper for creature vistual item set. 2011-03-16 20:21:45 +03:00
NoFantasy
c73e3cbd67 [11231] Add dummy aura effect for spell 43969
TODO: fix spell so that no initial aggro are made. Possibly other requirements are needed for effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-08 12:51:29 +01:00
dpedroia15
4dd87bd468 [11218] Fixed typo in local var.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-05 03:24:15 +03:00
VladimirMangos
f1899e3b27 [11206] Move visibility self/around to new function and use it.
* Fixed wrong visibility changes in some cases at .mod phase uses.
* Apply phase change to any owned units (not only pets as before).
  It also will applied in more safe way for avoid unexpected lost owner at update.
* Check view point setting auras targets accessability not only at visibility change
  but also at phase change.
* Replace SetVisibility(GetVisibility()) hack like calls.
2011-02-27 19:23:05 +03:00
Neveragain
bef47ce126 [11205] Implement talent 48492 and ranks.
Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-02-27 15:24:47 +01:00
Lynx3d
60b2e2c8ba [11192] Make some more use of 'const' in SpellAuraHolder. 2011-02-21 16:56:00 +01: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
VladimirMangos
cf685da47a [11139] Use for Creature/GameObject local per-map guids
* Creature/GameObject guid generators moved to Map
* For avoid wrong not converted cases generic function in ObjectMgr has been replaced by
  specilized guid generation function like sObjectMgr.GeneratePlayerLowGuid().
  This let catch all cases that need update in custom code or scripts.
* Drop many ObjectAcessor.h now dead code. This is also make mangos more thread safe.
* Restore one more time unix build broken in prev. commits.

Note: many cases when something not wotk in instance but work in continents
possible magicly start work after this commit. For example, some gm commands.
From large systems that need more chnages for start work in full power in instances
can be referecned pool/gamevent system. Last need just small hacks drop changes but
in will addded in independent commit.
2011-02-12 09:52:16 +03:00
VladimirMangos
9a8a74c2ad [11138] Make sure GameEvent/Pool systems work with static instance object guids
* Pool System for correct full power work in instance need implement
  MapPersistentState local pool system state for instanceable maps.
  Unit this not implemented pool system must avoid creating/despawn/touch
  instance map objects. Currently this work because instance map object use
  dynamic generated guids and "invisible" for Pool System, with explcitly forbiden
  for it spawn directly new objects. Code changes add explicit checks for preserve
  this way work for time when instance object will use static guids. When local pool
  state storing in persistent state this protection checks will possible drop.
  Non-instanced working cases converted in local map object search calls.

* GameEvent Systems currently have code that work correctly only with objects at
  non-instanced maps by same reasons as Pool System. But in different Pool System
  case game event activate/deactivate expected applied to _all_ object copies in all
  existed instanceable map copies. Code modified for work in expected way.
  Direct spawn disabled for instanceable maps until swith to static guids.
  Despawn code will make affect only for non-instanceavble maps unit swithc to static guids as-is.
  This is preserve current code working result.

* Convert last case usage global creature search in aura code to map local case.
  Player case also possible not need now after including caster damage/heal mods
  part to aura base damage/heal. In any cases player case preserved in old way work.

NOTE: this last places dependent from global creature/gameobject guid search so look like this
      make possible start direct work to switch instances use static guids instead dynamic generated
2011-02-12 07:24:04 +03:00
NoFantasy
d1007e49ca [11108] Add (parts of?) dummy aura for spell 56422
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-05 11:31:05 +01:00
VladimirMangos
f09a4e2a1a [11103] Fixed item 40775 mount work
* Move code to dummy aura (main spell mount aura not applied yet in time scripting effect processing)
* Use special mount spell selection helper instead raw code.
2011-02-02 20:28:11 +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
06cebecd50 [11100] Avoid send SMSG_DISMOUNT for non aura source mount state.
This fix problem with lost mount show at multi-node taxi path.

Thanks to blueboy for research problem.
2011-02-02 17:33:19 +03:00
Schmoozerd
c05f910484 [11095] Add dummy effect of spell 68839
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-02 10:13:26 +01:00
NoFantasy
d4304d471d [11088] Add missing equipment for spell 41101
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-31 10:14:02 +01:00
NoFantasy
38758b31a1 [11087] Add missing equipment for spell 53790
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-31 10:02:06 +01:00
NoFantasy
f98a9e4eee [11084] Add dummy auras for spells 53790,53791,53792 and 41099,41100,41101
Note: two of them are still missing data for equipment.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-30 16:48:47 +01:00
NoFantasy
e3e6811740 [11083] Add dummy aura effect of spell 52098
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-30 00:16:35 +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
9bf384cefa [11075] Add models for spell 71450
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-01-28 11:51:01 +01:00
breakwater
d5b982cbbe [11065] Implement stun absorb part of spell 24858
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-24 23:07:39 +03:00
Sarjuuk
a7bf12de71 [11050] Implement aura state AURA_STATE_BLEEDING (18)
Signed-off-by: zergtmn <zerg@myisp.com>
2011-01-20 03:26:00 +05:00
zergtmn
452b3d9e05 [11041] Tabs to spaces 2011-01-19 03:08:46 +05:00
Feanordev
a6ea82682d [11037] Max health dependent heal bonus for spell 55428 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-18 16:36:17 +03:00
Ceris
97756e95a2 [11034] Implement self-damage part of spell 49016 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-18 15:08:54 +03: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
VladimirMangos
5099b9133c [11026] Implement damage reduction part of spell 50720 2011-01-17 18:05:27 +03:00
michalpolko
7d61f8470e [11024] Fixed work spell 50720
* Threat redirection correctly applied
* Implemented cooldown reset part.

Note: Damage redunction still not fixed.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-01-17 15:21:03 +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
VladimirMangos
0c19c2c6a2 [11015] Prevent crash at player far teleport landing to nonexisten battleground instance.
Teleport back in like case or to homebind in bad case.
2011-01-16 00:31:41 +03: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
VladimirMangos
8d62e9dbf7 [11004] Fixed not apply spell for current form at learning.
Some non-passive spells autocasted at shapeshift but without fix
in case already active form at like spell learning it not has been casted
in different from passive similar spells.

This is fix apply dodge chance part of spell 17002 for described case.
2011-01-14 03:59:22 +03:00
VladimirMangos
d6eef703ce [10997] Fixed my wrong addition for wrong spell 58914 (instead 34026). 2011-01-11 05:11:02 +03:00