59 Commits

Author SHA1 Message Date
Necrovoice
a665f4dd46 Rogue Stealth corrections
A few corrections to the rogue stealth.
2017-01-31 20:05:47 +00:00
sidsukana
2c4cc00df2 Implemented school immunity for creature from database
The code is checking the database value against 1 << spellInfo->School so it should match the spell schools defined in the code (SharedDefines.h). Or translated into bits and mask values you can use in the database:

SPELL_SCHOOL_NORMAL = bit 0 (0x00000001)
SPELL_SCHOOL_HOLY   = bit 1 (0x00000002)
SPELL_SCHOOL_FIRE   = bit 2 (0x00000004)
SPELL_SCHOOL_NATURE = bit 3 (0x00000008)
SPELL_SCHOOL_FROST  = bit 4 (0x00000010)
SPELL_SCHOOL_SHADOW = bit 5 (0x00000020)
SPELL_SCHOOL_ARCANE = bit 6 (0x00000040)
2017-01-24 21:41:16 +00:00
Antz
756c8ff797 Remove unused include directives
Based on the work of @stfx in commit:
https://github.com/cmangos/mangos-classic/commit/48a84fb
2017-01-20 23:20:46 +00:00
Antz
cb2d60ba17 🎉 Happy 2017 from everyone at getmangos.eu 2017-01-01 14:19:24 +00:00
bdebaere
98948f841f Update Spell.cpp (#180)
Add positional requirement for Pounce spell, by removing the excluding code added there for Burning Crusade.
2016-11-29 00:27:41 +00:00
H0zen
9283f4309b Transport system step 1 - preparing 2016-11-28 07:47:57 +00:00
H0zen
cdd3489f08 Various external fixes - part 9 (#168)
Ported commits from cmangos repositories
- https://github.com/cmangos/mangos-classic/commit/b09f961
- https://github.com/cmangos/mangos-classic/commit/14cb464
- https://github.com/cmangos/mangos-classic/commit/de7e4cc
- https://github.com/cmangos/mangos-classic/commit/0181ff1
- https://github.com/cmangos/mangos-classic/commit/be4f74b
- https://github.com/cmangos/mangos-classic/commit/1ede0a0
- https://github.com/cmangos/mangos-classic/commit/5cf8095
- https://github.com/cmangos/mangos-classic/commit/35e30d8
- https://github.com/cmangos/mangos-classic/commit/ff444d2
- https://github.com/cmangos/mangos-classic/commit/86568b8
- https://github.com/cmangos/mangos-classic/commit/a554fa5
- https://github.com/cmangos/mangos-classic/commit/c4606f3
- https://github.com/cmangos/mangos-classic/commit/6fcc33f
2016-09-13 15:50:30 +01:00
hlarsen
55ec92e381 fix lightwell gameobject not appearing after spell is cast 2016-07-07 21:50:49 +01:00
xoeo
c6b07dd3ac fix hunter spell Mend pet out Range deduction MP problem (#147)
* fix hunter spell Mend pet out Range

fix hunter spell Mend pet out Range deduction MP problem

* fix hunter spell Mend pet out Range

fix hunter spell Mend pet out Range deduction MP problem

* Update SharedDefines.h
2016-06-24 21:09:12 +01:00
H0zen
192656a6ad More hunter pet fixes (#135)
- Tame Beast (1515) now properly checks for conditions before channeling
  - Hunters can no longer tame beast if they controlls a pet
2016-06-06 22:23:54 +01:00
H0zen
6a947449c3 Hunter fixes (#126)
* Hunter fixes

  -RevivePet will now properly revive the pet
  -CallPet will detect if the pet is dead; TODO: what if the pet is dismissed or stabled?
  -Player who TeleportTo will not carry the corpse of the dead pet with him

* Correction: summoners' pets are always saved alive into db

* Minor corrections
  -Now CallPet detects if the hunter doesn't have a current pet, spawned or not
2016-05-20 21:26:37 +01:00
H0zen
618a8ac684 Add missing else from previous commit 2016-05-09 20:59:59 +01:00
H0zen
7ba43d38d7 Fix some rogue issues (#122)
* Ported commits from cm

* Various external fixes - part 8
Ported commits from cmangos repositories
  - https://github.com/cmangos/mangos-classic/commit/f4b1f9f
  - https://github.com/cmangos/mangos-classic/commit/dc8b867
Simplify debug log output in Unit.cpp

* Fix some rogue issues
  -Distract ability was not set the target orientation properly
  -Improved Sap restored wrong rank of Stealth
Also revert part of previous commit, due to strange side effects.
Many thanks @mpfans for his support in fixing these issues.
2016-05-09 19:23:13 +01:00
H0zen
b15f4711a3 Various external fixes - part 8 (#121)
* Ported commits from cm

* Various external fixes - part 8
Ported commits from cmangos repositories
  - https://github.com/cmangos/mangos-classic/commit/f4b1f9f
  - https://github.com/cmangos/mangos-classic/commit/dc8b867
Simplify debug log output in Unit.cpp
2016-05-08 23:22:18 +01:00
robinsch
4f176795ff backport nosttbc 404f4b1 fixes for spirit of redemption
https://github.com/NostalriusTBC/Core/pull/5
2016-05-07 21:44:33 +01:00
H0zen
2776812b2e Improved Combat Movement handling
* Improved Combat Movement handling

* Some fixes to previous commit

* Another bunch of fixes combat movement
2016-04-04 09:13:13 +01:00
zwisus
a5e0d20e7e Typo and Take Power. 2016-03-29 10:22:00 +08:00
Zwisus
c81505475b Spell_Miss will Restore Rage and Energy 2016-03-28 21:49:41 +08:00
Antz
c453b05106 Corrected website URL 2016-03-20 22:09:21 +00:00
Olion
414c3a433c [Spell] Stop casting non-instant spell when target is lost
Rogue vanish, hunter feign death, probably invis potion are handled.
Spell is interrupted w/o cooldown set (even if channeled) and mana loss.
https://www.getmangos.eu/issue.php?issueid=736
2016-02-21 14:34:10 +00:00
Olion
a3cde56b18 [Spell] minor cleanup
Too lazy to find out what exactly was influenced by it, but it was wrong :)
no effect != negative effect
2016-02-20 22:41:08 +00:00
Olion
98dfabe70b [Loot] 50% player damage to mob reuired for reward
Unchanged TC backport. Not fully tested.
2016-02-20 22:17:26 +00:00
H0zen
787ac6036d Various external fixes - part 4
- ported commits from cmangos repositories
2016-02-20 18:21:44 +02:00
H0zen
7e1d4c804e Fix Mind Soothe aggro.
- Fix issue https://www.getmangos.eu/issue.php?issueid=908
2016-02-20 00:51:00 +02:00
H0zen
f75a8b9719 Fix false error display - Bloodthirst triggers
- Bloodthirst and Mortal Strike have same SpellFamilyFlags
    - supress displaying "Spell::EffectSchoolDMG: Spell #id not handled in BTAura"
    - this fix applies to ZERO only!
2016-02-12 16:13:28 +02:00
H0zen
c7f8748e69 Fix Gnomish Death Ray.
- The Gnomish Death Ray now properly charges and deals damage.
    - TODO: more research on dmg/crit/dr
2016-02-08 17:54:35 +02:00
H0zen
3cc509f558 Fix Gnomish Mind control cap
- Issue [910](https://www.getmangos.eu/issue.php?issueid=910)
2016-02-07 13:47:25 +02:00
H0zen
4cc0cd2d51 Fix Cannibalize
- Fixes [issue 911](https://www.getmangos.eu/issue.php?issueid=911)
2016-02-07 03:54:58 +02:00
Charles A Edwards
1ef8fddde7 fix by H0zen moved back to its original location
The condition statement has been moved back to its original location.

<runs away>
2016-01-21 15:51:20 +00:00
Charles A Edwards
603e4a7dc5 Moved condition related to mage casting on self
Moved condition related to prevention of casting on self.
Will check the other cores to see if this needs to be applied to them
too.
It does need to be applied to One.
2016-01-21 13:14:11 +00:00
H0zen
7665177e2a Fix Arcane Missile self cast bug.
- Fixes issue [987](https://www.getmangos.eu/issue.php?issueid=987)
2016-01-19 23:24:28 +02:00
Olion
b34cfa0a4a Added disables table
Mostly backported from TC.
Changed table format (mapID in lower 16 bit, areaID in higer 16 bit of data field).
Added CREATURE_SPAWN and GAMEOBJECT_SPAWN disable types.
2016-01-02 22:18:14 +00:00
Antz
3967eddc87 [2016] Happy New Year from the MaNGOS Team 2015-12-31 21:15:37 +00:00
Antz
459c60c695 Merge pull request #53 from trimken/develop21
[Core] Improved Shield Block & Improved Sap
2015-11-20 20:50:29 +00:00
Antz
ed4886b0b2 Merge pull request #54 from H0zen/develop21
[EventAI] Improved logic in ACTION_T_CAST
2015-11-20 20:49:49 +00:00
xfury
066bb22948 Don't interrupt certain channeled spells
This will check for the combination of SPELL_ATTR_EX_CHANNELED_1 and SPELL_ATTR_EX3_UNK28 (possible SPELL_ATTR_EX3_ALWAYS_CAST_OK) and ignore UNIT_STAT_CAN_NOT_REACT

Thanks to @vovk

Close scriptdev2/scriptdev2#145

(based on 7ced9cf483)

Signed-off-by: Cala <calaftp@free.fr>

(based on fbf73342c7)

Signed-off-by: Cala <calaftp@free.fr>
2015-11-20 22:48:32 +08:00
H0zen
4c7ce806cc [EventAI] Improved logic in ACTION_T_CAST
- What are the sources for combat movement and when to stop it.
  - Also, introduced a check for LoS in Spell::update to cancel the spells earlier
    when no LoS.
2015-11-18 02:25:35 +02:00
Nick
2827834b2d Revert "Revert "[Rogue][Talent] Improved sap""
This reverts commit f533f4d379850e59283b8b2f9e2052cdb51695d1.
2015-11-17 20:05:33 +09:00
Nick
f533f4d379 Revert "[Rogue][Talent] Improved sap"
This reverts commit e18cdf6f96b20cf3ee9c5675dfa6251c1b8c2832.
2015-11-17 20:05:11 +09:00
Nick
e18cdf6f96 [Rogue][Talent] Improved sap
https://www.getmangos.eu/issue.php?issueid=283
2015-11-17 18:24:07 +09:00
Olion
ef4564adfa [Spell] Minor refactoring
Like HasSpellEffect method here, other now global-scoped methods from SpellMgr.h should be transfered into corresponding classes/structures (TODO).
2015-11-10 23:43:26 +00:00
Olion
2714c63656 [Spell] Extra attack: allow to accumulate only next swing extra atttacks 2015-11-10 23:40:14 +00:00
Olion
b35a53e2b9 [Spell] Extra attack: instant or on the next swing
Known issue: wrong combat logging order. Though the timestamp for spelleffect and instant extra attack is the same, the spelleffect appears later in the log.
Was tested on the Windfury weapon only. Main idea was taken from the TC.
2015-11-10 23:39:47 +00:00
Olion
1cdfec704a [Spells] Any triggered by aura spell should be casted instantly (a weaker condition). 2015-11-10 23:35:31 +00:00
Olion
f7809fc475 [Spells] Any triggered spell should be casted instantly. 2015-11-10 23:34:55 +00:00
Olion
d91804bc05 [Pets] Check pet power before it casts 2015-11-10 23:26:11 +00:00
evil-at-wow
d21d680b41 [Core] Fix spells with the target combination (TARGET_SCRIPT, TARGET_SELF). [cz2671]
There are only four spells with this combination, all involved in a quest:
* Spell 11637, used by item 9364, for quest 2962.
* Spell 17048, used by item 12848, for quest 5127.
* Spell 22906, used by item 18488, for quest 7509.
* Spell 13982, used by item 11231, for quest 4024. [TBC and Classic only]
2015-07-10 20:57:24 +01:00
xfurry
d3ba1289c3 [Core] Override spell range for script target spells when not provided. [cz2661]
This will fix all the spells which require script targets but have a RangeIndex 1.
2015-07-07 22:17:23 +01:00
Olion
321f7fb739 Gcc build: get rid of few warnings 2015-04-07 00:15:24 +03:00
Foereaper
7550dfca0e Merge branch 'develop21' of https://github.com/mangoszero/server into develop21 2015-04-04 01:21:38 +02:00