Commit Graph

536 Commits

Author SHA1 Message Date
QAston
ad06f05ddb *Fix Focused Magic.
*Make Presence of Mind no longer trigger Arcane Power.
*Apply correct calculation for SPELLMOD_PROC_PER_MINUTE.
*Fix divine shield positivity.

--HG--
branch : trunk
2009-03-20 19:53:26 +01:00
megamage
a2392121f0 *Fix the bug that summon dbc is not read. Now creatures can be summoned.
*Make minipet as tempsummon instead of pet. Make totem as tempsummon.

--HG--
branch : trunk
2009-03-19 14:41:30 -06:00
megamage
4877009098 *Set seer back when it is removed to prevent crash.
--HG--
branch : trunk
2009-03-19 08:59:15 -06:00
megamage
9f84e9cb22 *Also exit vehicle in uncharm function.
--HG--
branch : trunk
2009-03-18 21:51:52 -06:00
megamage
ef47783882 [7487] Avoid attempt use InstanceSave data for non-dungeons. Author: VladimirMangos
Also check map existance and correctness at instance data loading.
    Removed unused and totally bugged InstanceMap::GetResetTime.

--HG--
branch : trunk
2009-03-18 20:41:49 -06:00
megamage
82777554a0 *Merge with 243.
--HG--
branch : trunk
2009-03-18 15:31:44 -06:00
megamage
6a6f4de757 [7478] Avoid rescan data at some achievments triggering for speed. Author: VladimirMangos
Only if chnage can affect result
    * ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL
    * ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS
    * ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION
    * ACHIEVEMENT_CRITERIA_TYPE_GAIN_EXALTED_REPUTATION if

--HG--
branch : trunk
2009-03-17 14:55:16 -06:00
megamage
46dfd6261b [7477] Implement work ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM Author: VladimirMangos
--HG--
branch : trunk
2009-03-17 14:54:32 -06:00
megamage
5fb7a0585c *Fix a bug that redundant packets are sent to clients which may cause freeze.
--HG--
branch : trunk
2009-03-17 14:35:11 -06:00
megamage
c24e336387 *Remove an assert and use error log instead.
--HG--
branch : trunk
2009-03-17 10:30:39 -06:00
megamage
610b331535 [7474] Set correct value/maxvalue for skill with fixed skill value at skill loading. Author: VladimirMangos
--HG--
branch : trunk
2009-03-16 15:53:02 -06:00
megamage
39e71ef5e2 [7473] Better support new DK class profession. Author: VladimirMangos
--HG--
branch : trunk
2009-03-16 15:52:16 -06:00
megamage
986334e641 [7472] Fixed messages in Eye of Storm Battleground. Author: Triply
--HG--
branch : trunk
2009-03-16 15:51:45 -06:00
megamage
6a3da0932f [7470] Fixed possible loot exploit, thanks to leak` for reporting Author: arrai
--HG--
branch : trunk
2009-03-16 15:49:21 -06:00
megamage
3eba06e4ad *Use SpellCastResult and finaly fix SPELL_CAST_OK value (255 custom value now). By VladimirMangos.
--HG--
branch : trunk
2009-03-16 12:00:14 -06:00
megamage
1a8528b3db [7460] Fixed possible cheating in rated arena by ressurection after relog. Author: Triply
Fix: Do not allow to remove insignia from players in arena!
    Fixed ending arena match when last player of team logs out.

--HG--
branch : trunk
2009-03-15 17:16:11 -06:00
QAston
7a1e7c4f73 *Prevent possible crash.
*Remove obsolete Judgement of Righteousness coefficient-by cccyril

--HG--
branch : trunk
2009-03-15 18:02:10 +01:00
QAston
d910fc951e *Auras by caster are now shown correctly (doublesized).
*First rank of Psychic Horror now procs correctly.
*Mana drain effects amount of damage is now correct.
*Raczman is now satisfied.

--HG--
branch : trunk
rename : sql/updates/1910_world.sql => sql/updates/1912_world.sql
2009-03-15 16:20:10 +01:00
megamage
ef5d01d66d Small cleanups in item checks code. Author: VladimirMangos
--HG--
branch : trunk
2009-03-14 20:02:33 -06:00
megamage
9041286aa2 [7455] Implemented condition that player can be in 2 groups in 1 time - BG raid and normal group / raid. Author: Triply
Patch is tested, but can cause problems / unexpected behaviour.
    TODO: set raid leader of battleground raid to raid leader who entered BG
    TODO: when player leaves group, he is removed from GroupQueueInfo, and for him is created new GroupQueueInfo in normal queue.

    Signed-off-by: Triply <triply@getmangos.com>

--HG--
branch : trunk
2009-03-14 20:00:02 -06:00
megamage
ff60cf65a1 *Autocast flight spells for vehicles as passive spells.
--HG--
branch : trunk
2009-03-14 19:33:20 -06:00
megamage
2490a3e250 *Fix a typo that makes players can see invisible units.
*Update farsight target code. Only change seer when receive client request.

--HG--
branch : trunk
2009-03-14 15:11:04 -06:00
megamage
5d440f2898 *Init spells for vehicles.
--HG--
branch : trunk
2009-03-14 09:49:10 -06:00
megamage
d90d0002e3 *Merge.
--HG--
branch : trunk
2009-03-14 09:24:59 -06:00
Blaymoira
c45fe6969c *Remove not needed code
--HG--
branch : trunk
2009-03-14 11:49:16 +01:00
megamage
a5882ee84a *Merge.
*"Fix Glowing Blood" is not merged. Outdated patch?

--HG--
branch : trunk
2009-03-13 18:48:53 -06:00
megamage
721fad0c1c [7452] Drop from DB broken action button data detected at loading. Author: VladimirMangos
--HG--
branch : trunk
2009-03-13 18:30:27 -06:00
megamage
7dd699c076 *Remove aura type by caster in some cases. New function RemoveAuraTypeByCaster.
--HG--
branch : trunk
2009-03-13 17:25:46 -06:00
megamage
5ea92ebb12 *Fix a bug of checking bags which can store items. Backported from TC2. Thanks to Iskander for pointing out the bug.
--HG--
branch : trunk
2009-03-13 14:57:42 -06:00
megamage
f7f6d6558c *Use m_mover to check if can detect target.
--HG--
branch : trunk
2009-03-12 14:41:38 -06:00
megamage
6e12d3f1b9 [7441] Fixed reward money counting for ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD Author: VladimirMangos
--HG--
branch : trunk
2009-03-11 16:18:54 -06:00
megamage
6e29ab4fbb [7440] Use server-side only zone info. Optimize related calles in case zone and subzone use. Author: VladimirMangos
This in some cases make some zones not explorable if it not have server side data in current maps
    but not allow cheating with zone set from client.

--HG--
branch : trunk
2009-03-11 16:17:37 -06:00
megamage
167ca565d0 *Update bind sight spells code.
--HG--
branch : trunk
2009-03-10 15:26:17 -06:00
megamage
5f7a2b4355 [7428] Add new .map file format use more compact data store and use
Rewrite .map extractor
     + extract more useful data
     + add "-f 0" option for disable size/accuracy optimisation
     + Compatability vs 2.4.3 client data
    More fast get .map data
    Implement fatigue timer
    Rewrite breath timer
    Allow absorb/resist for lava/slime environmental damage

    Need re-extract map for work.

Author: DiSlord

--HG--
branch : trunk
2009-03-09 18:06:19 -06:00
megamage
7a2f21a0b1 [7426] Mounted players now can capture tower point in Eye of Storm. Author: Triply
Renamed function isAllowUseBattleGroundObject to CanUseBattleGroundObject

--HG--
branch : trunk
2009-03-09 18:00:56 -06:00
megamage
3d3656297f [7424] Codestyle: removed not needed \n in log output. Author: balrok
--HG--
branch : trunk
2009-03-09 17:56:51 -06:00
megamage
1f296b7d40 [7414] Fixed premature finish timer messages for battleground (va_start was broken). Author: Triply
Fixed typo with BattleGroundPlayerMap.
    Optimized implementation for removing offline players from battleground.
    Fixed typo in BattleGroundMgr::DeleteAllBattleGrounds.
    Patch is tested and should work.

    TODO there is a bug if you disable premature finish timer, that can cause battlegrounds to be never ending!
    TODO rewrite BattleGround::RemovePlayer function - and fix bugs there!
    I might not have today enough time to fix those bugs.

--HG--
branch : trunk
2009-03-09 17:07:12 -06:00
megamage
01b67a1f6a [7413] Fixed finally problems with node names localization in BattleGroundAB messages. Author: VladimirMangos
Also fix build at some platforms.
Note: GetTrinityString should be removed in the future when AV is updated.

--HG--
branch : trunk
2009-03-09 17:06:13 -06:00
megamage
328345ac1a [7403] much more unneeded includes removed Author: balrok
--HG--
branch : trunk
2009-03-08 13:05:56 -06:00
megamage
985b7656bb *Merge.
--HG--
branch : trunk
rename : sql/updates/XXX_characters_auctionhouse.sql => sql/updates/1164_characters.sql
2009-03-08 11:36:10 -06:00
megamage
0f8dee432c *Update of relocation notify code.
--HG--
branch : trunk
2009-03-08 11:11:21 -06:00
megamage
acceab49c6 [7396] Fixed crash at group disband after some player invite decline and offline. Author: VladimirMangos
Correctly cleanup invites list at decline.

--HG--
branch : trunk
2009-03-07 10:42:13 -06:00
megamage
417c7c8319 [7393] Implement access to client side holiday ids. Author: VladimirMangos
* src/game/GameEvent.* renamed to src/game/GameEventMgr.* for consistence
    * `game_event` now have new `holiday` field for store client side holiday id associated with game event
    * Added new enum HolidayIds with existed at this moment holiday ids.
    * New function "bool IsHolidayActive(HolidayIds id)" added accessabel from scripts for active holidays check.

--HG--
branch : trunk
2009-03-06 19:36:47 -06:00
megamage
c2261e3502 [7391] Prevent achievement counter overflow, implement ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE generic support.
Before overflow has been possible at 4294967295 lols for example.

    ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE in many cases require check special conditions and targets.
    For this allow call it from scripts:
    * Add Player::UpdateAchievementCriteria functiona ccessable from scripts
    * In emote case it allowed call in form player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE, text_emote_id, achievement_id, target_unit_ptr);

Author: VladimirMangos

--HG--
branch : trunk
2009-03-06 18:14:05 -06:00
megamage
7915fd768a *Merge.
--HG--
branch : trunk
2009-03-06 18:09:01 -06:00
megamage
50b3095312 Implement some death related achievements
* ACHIEVEMENT_CRITERIA_TYPE_DEATH (normal and arena types counting)
    * ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON (instance types by man limit counting)
      Note: need fixed for cases when max allowed players different from recommended count.
    * ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM (environment damage sources by types)

    Fixed:
    * ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_PLAYER
       - self-kill counting as death from players
       - same team player kill in opposition kills counter.

    Also cleanup in Player::EnvironmentalDamage use DBCStructure.h comment.

Author: VladimirMangos

--HG--
branch : trunk
2009-03-06 15:21:44 -06:00
Blaymoira
b49732c04d *Merge
--HG--
branch : trunk
2009-03-06 20:14:07 +01:00
megamage
8787c00ca3 *Disable charmed/possessed creature AI.
*Use general react states to replace charminfo react states.

--HG--
branch : trunk
2009-03-05 18:48:56 -06:00
Blaymoira
fd2fd00c14 *Implement access_requirement table - by Iskander
- now check the requirements on teleport not only on areatrigger use
- moved some columns from instance_template and areatrigger_teleport to access_requirement table

--HG--
branch : trunk
2009-03-05 21:02:33 +01:00
QAston
2f20a832dc *Fix reward rep amount- by yad02
*Fix Haunt and Pain and Suffering- by Fog
*Fix leader of the pack-original patch by Lightguard

--HG--
branch : trunk
2009-03-05 20:47:18 +01:00