Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The activeEffect variable passed by the magicEffectApply event is null. #1553

Open
oto-git opened this issue Jul 10, 2023 · 0 comments
Assignees

Comments

@oto-git
Copy link

oto-git commented Jul 10, 2023

Severity

Major. A crucial error that indicates a deviation from business logic or disrupts the program, but doesn't have a vital impact on the app.

Priority

Medium. Anything that negatively affects the user experience.

Description

The activeEffect variable passed from the magicEffectApply event was returning null.

Skyrim Platform Version:2.7.1

OS

Windows

OS version

10

Skyrim version

1.5.97.0.8

SKSE version

2.0.20

client commit''s hash

None

server commit''s hash

None

Videocard model

Radeon RX 590

Steps to reproduce

on('magicEffectApply', (event) => {
	let act = Actor.from(event.target);
	if(act) {
		if(event.activeEffect) {
			printConsole(act.getDisplayName() + " magicEffectApply:" + event.activeEffect.getMagnitude());
		} else {
			printConsole("event.activeEffect is Null");
		}
	}
});

Register the magicEffectApply event above and perform the following steps

  1. use the spelling of Healing
  2. check the console display

Expected result

The message '(Player Name) magicEffectApply:(Magic Magnitude Value)' is output to the console.

Actual result

The message 'event.activeEffect is Null' is output to the console.
activeEffect Null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants