Commit Graph

734 Commits

Author SHA1 Message Date
Liberate
3cd4626dac Fix a typo in my previous commit. thanks dr.tenma for pointing this out.
--HG--
branch : trunk
2010-05-26 16:18:45 +02:00
Liberate
aa5100e7d9 *Fix: Don't apply an aura when it's duration is 0. (for example because of diminishing returns)
This should fix interrupts when casting fear, stun, etc, while the duration is 0.
Fix based on havenard's patch.
Fixes issue 1621
Fixes issue 2271

--HG--
branch : trunk
2010-05-26 15:38:31 +02:00
_manuel_
b6add13f9e Fixed checks for Disarm Trap, thanks to Spp.
--HG--
branch : trunk
2010-05-23 22:17:01 -03:00
_manuel_
8460168e5f Removed tabs
--HG--
branch : trunk
2010-05-23 18:20:10 -03:00
_manuel_
83afcd9061 Disarm Trap now can be used in BattleGrounds and Arenas.
--HG--
branch : trunk
2010-05-23 18:06:22 -03:00
Spp
c551b23b15 Fix Typo in previous commit
Fixes issue 2295

--HG--
branch : trunk
2010-05-21 12:25:03 +02:00
click
ee507dd945 Add additional castchecks for SPELL_EFFECT_LEAP_BACK
--HG--
branch : trunk
2010-05-21 10:24:51 +02:00
click
d79f6295aa Add support for NPC-based start of playing moviesequence + clean up indenting on earlier commit
--HG--
branch : trunk
2010-05-10 13:27:18 +02:00
click
5b20d478ff Another little fix on hunter Disengage - stop it from being usable when rooted
--HG--
branch : trunk
2010-05-10 03:02:30 +02:00
click
02dfc46849 Fix hunters Disengage - disallow use when not in combat + use correct text when attempting to use it out of combat
Patch by mrDiver - fixes issue #568.

--HG--
branch : trunk
2010-05-09 08:39:25 +02:00
Trazom62
946ded4619 Fix FoS/Bronjham script.
Fixes issue #1895.

- summon corrupted soul fragment when Corrupt Soul completes.
- update corrupted soul fragment script.
- remove Heroic spell definition. They are defined in SpellDifficulty.dbc.

--HG--
branch : trunk
2010-04-29 19:04:19 +02:00
Trazom62
36ebd58b37 Implement support of Timed Achievement. Thanks Shauren.
Fixes issue #1431.

--HG--
branch : trunk
2010-04-27 22:22:13 +02:00
Trazom62
edbbec75b1 Fix channelled spells when player has lot of haste AND a buff reducing spell duration. Thanks dr.tenma.
Fixes issue #1052.

--HG--
branch : trunk
2010-04-25 22:20:59 +02:00
click
e1e7083990 Remove caster from always being part of casters targetlist during spellcasts - thanks to QAston for pointing out that it's useless! :)
--HG--
branch : trunk
2010-04-20 00:02:37 +02:00
Spp
be01821050 More warning removal (Some code modifications and cleanup when needed)
--HG--
branch : trunk
2010-04-19 17:03:10 +02:00
Spp
74dd02d024 Remove LOTS of compile warnings
--HG--
branch : trunk
2010-04-19 09:26:37 +02:00
click
fdd8d2f3cc Move around and do some changes to homebinding, thanks to Vladimir
* Adds support for spelltarget-positions
* Uses areaname instead of zonename on hearthstone
Add homebind animation to player, with cast from innkeeper

--HG--
branch : trunk
2010-04-18 23:20:07 +02:00
click
279ea9c98c * Fix: Deathknights 'Death Grip'
Fixes issue #148
Fixes issue #1223
Patch by tbaart (partial commit - Dancing Rune Weapon still needs testing)

--HG--
branch : trunk
2010-04-11 15:30:39 +02:00
Trazom62
ab6e30b9c8 Fix GCD in case of cast interrupt.
Fixes issue #1587.

--HG--
branch : trunk
2010-04-11 11:19:22 +02:00
n0n4m3
a3be43a297 Final fix basepoints calculation, thx to Vladimir, Laise.
--HG--
branch : trunk
2010-04-11 11:43:23 +04:00
n0n4m3
be95faff23 Fix mail, professions, group loot, console spam, and some fixes. Big thx to TOM_RUS.
--HG--
branch : trunk
2010-04-11 11:16:42 +04:00
Rat
4a8bf5900d *modified spelldifficulty handler to work with all spell casts for creatures that are in instances thanks to Shauren for help
*modified most of the scripts to use normal_mode spell for casting (code was autogenerated, post errors if any)
*added sql for all modded spells (autogenerated..)

--HG--
branch : trunk
2010-04-10 10:20:01 +02:00
Trazom62
bca335f9bd Implement Global Cooldown (originaly written for TC2 v2.4.3).
Thanks eugen.rivniy for the port.
Fixes issue #67.

--HG--
branch : trunk
2010-04-09 20:10:55 +02:00
Spp
4635fbc020 Code Style (game + scripts only):
"!=" --> " != " (when needed)
"  !=" --> " !="
"!=  " --> "!= "

--HG--
branch : trunk
2010-04-08 08:20:08 +02:00
Spp
2454c290b8 Code Style (game + scripts only):
"==" --> " == " (when needed)

--HG--
branch : trunk
2010-04-07 23:25:02 +02:00
Spp
49d05ba9aa Code style (game + scripts only):
"( " --> "("
" )" --> ")"

--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp
d19e127080 Code style (game + scripts only):
"if(" --> "if ("

--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp
2e127f7a30 Code style (game + scripts only):
"while(" --> "while ("

--HG--
branch : trunk
2010-04-07 19:13:19 +02:00
Spp
182e9a20b1 Code style (game + scripts only):
"for(" --> "for ("

--HG--
branch : trunk
2010-04-07 19:12:44 +02:00
Spp
b27ce42704 Code Style: Remove trailing spaces
--HG--
branch : trunk
2010-04-07 18:09:10 +02:00
Spp
f490ad5ac2 Code Style: tab to spaces
--HG--
branch : trunk
2010-04-07 17:24:07 +02:00
thenecromancer
1fa2fbc658 Fix wrong condition in previous commit, sorry for that
--HG--
branch : trunk
2010-04-05 13:18:14 +02:00
thenecromancer
a1db8825d4 Use unit target by default (script targets will send self flag usualy)
Fixes quite some new issues like #1466

--HG--
branch : trunk
2010-04-05 13:15:21 +02:00
thenecromancer
e50b04f657 Fix issue #1437, don't remove passive auras if they're triggering spell that fails for whatever reason
--HG--
branch : trunk
2010-04-03 12:32:11 +02:00
Trazom62
7cc192e973 Fix Skinning where there is no loot on creature.
Fixes issue #1174.

--HG--
branch : trunk
2010-03-30 23:39:18 +02:00
XTZGZoReX
d3fdb24f1e * Remove an old dumb hack.
--HG--
branch : trunk
2010-03-29 21:47:07 +02:00
Xanadu
180651d95e A visually better way to handle Avenger Wrath blocking of immunity shields.
--HG--
branch : trunk
2010-03-26 22:21:33 +01:00
Xanadu
20de79f6ba Fixed Forbearance. Also self-cast LoH will now correctly prevent Avenging Wrath for 30 s. Closes issue #1270. Thanks to _manuel_ for research.
--HG--
branch : trunk
2010-03-25 17:09:05 +01:00
Machiavelli
a4e98f50d0 Fix mounts in Arena's/BGs
--HG--
branch : trunk
2010-03-21 19:12:04 +01:00
Machiavelli
fe30fc8bf2 Securer check for instance template for previous commit
--HG--
branch : trunk
2010-03-21 18:17:20 +01:00
Machiavelli
48051d1cd6 Add support field 'allowMount' to instance_template table (see http://trinitydatabase.org/index.php?/topic/14994-7656-instance-template/), this will define whether or not mounting is allowed in an instance, instead of defining it hard coded in the core.
--HG--
branch : trunk
2010-03-21 17:34:25 +01:00
Xanadu
812874a55b Fixed broken missile visuals in certain DST and SRC type spells (Void Reaver's Arcane Orb and many others). Achieved by fixing wildly incorrect SMSG_SPELL_GO target mask data handling.
--HG--
branch : trunk
2010-03-19 00:21:57 +01:00
Xanadu
06d4918163 Added unit targets for TARGET_TYPE_DEST_TARGET and TARGET_TYPE_DEST_CASTER to tackle the cases where unit targets are required but there is no other implicit target to produce them (like in 53, 0 combination).
This works in conjunction with my next commit.

--HG--
branch : trunk
2010-03-18 20:41:38 +01:00
thenecromancer
a81ad6986c Remove Hack detecting spell 61988 in HasAura()
Correctly cast 61988/61987 after casting Avenging Wrath/Divine Shield respectively
(This will correctly show both spells disabled state)
Don't allow casting Lay on Hands on self when aura 61988 is present (ie. after using Avenging Wrath)

--HG--
branch : trunk
2010-03-15 18:03:43 +01:00
thenecromancer
e1542df90c Convert some C style casts to new functions
--HG--
branch : trunk
2010-03-11 20:51:31 +01:00
Spp
9df357f5d9 Fix enchant items in trade window.
Original patch by Kierkegaard
closes issue #985

--HG--
branch : trunk
2010-03-09 21:11:54 +01:00
Spp
8034a6c48e Rename 'Hostil' to 'Hostile'
Credits to NoFantasy (Mangos)
Closes issue #411

--HG--
branch : trunk
2010-03-09 11:11:10 +01:00
raczman
07f3b91426 Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()

--HG--
branch : trunk
2010-03-07 18:30:53 +01:00
raczman
91b8ee104e Added new type-safe cast functions.
This, when properly used, should get rid of most memory corruption issues,
currently, casting types C-style with no checks leads to some abstract crashing.
Functionality is same as with dynamic_cast<>, but with no RTTI check - so when
casting into invalid type you will receive NULL, and most probably crash.
At the same time, i took the liberty to convert most Player* casts to ToPlayer().
Still needs crapload of casts being moved to new facility.

--HG--
branch : trunk
2010-03-07 15:20:19 +01:00
thenecromancer
aeebe57dc0 Remove 94567c94e6, instead don't check range/facing when finishing instant cast spells
--HG--
branch : trunk
2010-03-07 14:32:53 +01:00