mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 21:02:41 +00:00
Spell field defined that determines if must be sneaking to use this ability.
This is handled by client under normal conditions, however if you force cast this effect in situations like 'procs' you can cause zone crashes, therefore a failsafe check is added in 'SpellOnTarget'
This commit is contained in:
parent
b32f59a40d
commit
563a39c2d9
@ -1,6 +1,6 @@
|
|||||||
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
== 11/13/2014 ==
|
== 11/14/2014 ==
|
||||||
Kayen: Implemented target type (44) 'Beams' (which projects an AE infront of caster with a specified length and width).
|
Kayen: Implemented target type (44) 'Beams' (which projects an AE infront of caster with a specified length and width).
|
||||||
Kayen: Implemented target type (32) AE Target HateList
|
Kayen: Implemented target type (32) AE Target HateList
|
||||||
Kayen: Implemented target type (36) Area Client Only
|
Kayen: Implemented target type (36) Area Client Only
|
||||||
|
|||||||
@ -1564,6 +1564,7 @@ void SharedDatabase::LoadSpells(void *data, int max_spells) {
|
|||||||
sp[tempid].NimbusEffect = atoi(row[193]);
|
sp[tempid].NimbusEffect = atoi(row[193]);
|
||||||
sp[tempid].directional_start = static_cast<float>(atoi(row[194]));
|
sp[tempid].directional_start = static_cast<float>(atoi(row[194]));
|
||||||
sp[tempid].directional_end = static_cast<float>(atoi(row[195]));
|
sp[tempid].directional_end = static_cast<float>(atoi(row[195]));
|
||||||
|
sp[tempid].sneak = atoi(row[196]) != 0;
|
||||||
sp[tempid].not_extendable = atoi(row[197]) != 0;
|
sp[tempid].not_extendable = atoi(row[197]) != 0;
|
||||||
sp[tempid].suspendable = atoi(row[200]) != 0;
|
sp[tempid].suspendable = atoi(row[200]) != 0;
|
||||||
sp[tempid].viral_range = atoi(row[201]);
|
sp[tempid].viral_range = atoi(row[201]);
|
||||||
|
|||||||
@ -722,7 +722,7 @@ struct SPDat_Spell_Struct
|
|||||||
/* 193 */ int NimbusEffect;
|
/* 193 */ int NimbusEffect;
|
||||||
/* 194 */ float directional_start; //Cone Start Angle:
|
/* 194 */ float directional_start; //Cone Start Angle:
|
||||||
/* 195 */ float directional_end; // Cone End Angle:
|
/* 195 */ float directional_end; // Cone End Angle:
|
||||||
/* 196 */
|
/* 196 */ bool sneak; // effect can only be used if sneaking (rogue 'Daggerfall' ect)
|
||||||
/* 197 */ bool not_extendable;
|
/* 197 */ bool not_extendable;
|
||||||
/* 198- 199 */
|
/* 198- 199 */
|
||||||
/* 200 */ bool suspendable; // buff is suspended in suspended buff zones
|
/* 200 */ bool suspendable; // buff is suspended in suspended buff zones
|
||||||
|
|||||||
@ -3262,6 +3262,11 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob* spelltar, bool reflect, bool use_r
|
|||||||
if(spelltar->IsClient() && spelltar->CastToClient()->IsHoveringForRespawn())
|
if(spelltar->IsClient() && spelltar->CastToClient()->IsHoveringForRespawn())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (spells[spell_id].sneak && IsClient() && !CastToClient()->sneaking){
|
||||||
|
Message_StringID(13, SNEAK_RESTRICT);
|
||||||
|
return false;//Fail Safe, this can cause a zone crash certain situations if you try to apply sneak effects when not sneaking.
|
||||||
|
}
|
||||||
|
|
||||||
if(IsDetrimentalSpell(spell_id) && !IsAttackAllowed(spelltar) && !IsResurrectionEffects(spell_id)) {
|
if(IsDetrimentalSpell(spell_id) && !IsAttackAllowed(spelltar) && !IsResurrectionEffects(spell_id)) {
|
||||||
if(!IsClient() || !CastToClient()->GetGM()) {
|
if(!IsClient() || !CastToClient()->GetGM()) {
|
||||||
Message_StringID(MT_SpellFailure, SPELL_NO_HOLD);
|
Message_StringID(MT_SpellFailure, SPELL_NO_HOLD);
|
||||||
@ -4711,7 +4716,7 @@ void NPC::Stun(int duration) {
|
|||||||
|
|
||||||
void NPC::UnStun() {
|
void NPC::UnStun() {
|
||||||
Mob::UnStun();
|
Mob::UnStun();
|
||||||
SetRunAnimSpeed(this->GetRunspeed());
|
SetRunAnimSpeed(static_cast<int8>(GetRunspeed()));
|
||||||
SendPosition();
|
SendPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -338,6 +338,7 @@
|
|||||||
#define STRIKETHROUGH_STRING 9078 //You strike through your opponent's defenses!
|
#define STRIKETHROUGH_STRING 9078 //You strike through your opponent's defenses!
|
||||||
#define SPELL_REFLECT 9082 //%1's spell has been reflected by %2.
|
#define SPELL_REFLECT 9082 //%1's spell has been reflected by %2.
|
||||||
#define NEW_SPELLS_AVAIL 9149 //You have new spells available to you. Check the merchants near your guild master.
|
#define NEW_SPELLS_AVAIL 9149 //You have new spells available to you. Check the merchants near your guild master.
|
||||||
|
#define SNEAK_RESTRICT 9240 //You can not use this ability because you have not been hidden for long enough.
|
||||||
#define PET_NOW_FOCUSING 9254 //Focusing on one target, Master.
|
#define PET_NOW_FOCUSING 9254 //Focusing on one target, Master.
|
||||||
#define PET_NOT_FOCUSING 9263 //No longer focusing on one target, Master.
|
#define PET_NOT_FOCUSING 9263 //No longer focusing on one target, Master.
|
||||||
#define PET_NOT_CASTING 9264 //Not casting spells, Master.
|
#define PET_NOT_CASTING 9264 //Not casting spells, Master.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user